ovs all
vswitch-idl.c File Reference
#include <config.h>
#include "lib/vswitch-idl.h"
#include <limits.h>
#include "ovs-thread.h"
#include "ovsdb-data.h"
#include "ovsdb-error.h"
#include "util.h"
Include dependency graph for vswitch-idl.c:

Enumerations

enum  { sizeof_bool = sizeof(bool) }
 

Functions

static struct ovsrec_autoattachovsrec_autoattach_cast (const struct ovsdb_idl_row *row)
 
static struct ovsrec_bridgeovsrec_bridge_cast (const struct ovsdb_idl_row *row)
 
static struct ovsrec_controllerovsrec_controller_cast (const struct ovsdb_idl_row *row)
 
static struct ovsrec_flow_sample_collector_setovsrec_flow_sample_collector_set_cast (const struct ovsdb_idl_row *row)
 
static struct ovsrec_flow_tableovsrec_flow_table_cast (const struct ovsdb_idl_row *row)
 
static struct ovsrec_ipfixovsrec_ipfix_cast (const struct ovsdb_idl_row *row)
 
static struct ovsrec_interfaceovsrec_interface_cast (const struct ovsdb_idl_row *row)
 
static struct ovsrec_managerovsrec_manager_cast (const struct ovsdb_idl_row *row)
 
static struct ovsrec_mirrorovsrec_mirror_cast (const struct ovsdb_idl_row *row)
 
static struct ovsrec_netflowovsrec_netflow_cast (const struct ovsdb_idl_row *row)
 
static struct ovsrec_open_vswitchovsrec_open_vswitch_cast (const struct ovsdb_idl_row *row)
 
static struct ovsrec_portovsrec_port_cast (const struct ovsdb_idl_row *row)
 
static struct ovsrec_qosovsrec_qos_cast (const struct ovsdb_idl_row *row)
 
static struct ovsrec_queueovsrec_queue_cast (const struct ovsdb_idl_row *row)
 
static struct ovsrec_sslovsrec_ssl_cast (const struct ovsdb_idl_row *row)
 
static struct ovsrec_sflowovsrec_sflow_cast (const struct ovsdb_idl_row *row)
 
static void ovsrec_autoattach_parse_mappings (struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
 
static void ovsrec_autoattach_parse_system_description (struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
 
static void ovsrec_autoattach_parse_system_name (struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
 
static void ovsrec_autoattach_unparse_mappings (struct ovsdb_idl_row *row_)
 
static void ovsrec_autoattach_unparse_system_description (struct ovsdb_idl_row *row OVS_UNUSED)
 
static void ovsrec_autoattach_unparse_system_name (struct ovsdb_idl_row *row OVS_UNUSED)
 
static void ovsrec_autoattach_init__ (struct ovsdb_idl_row *row)
 
void ovsrec_autoattach_init (struct ovsrec_autoattach *row)
 
const struct ovsrec_autoattachovsrec_autoattach_get_for_uuid (const struct ovsdb_idl *idl, const struct uuid *uuid)
 
const struct ovsrec_autoattachovsrec_autoattach_first (const struct ovsdb_idl *idl)
 
const struct ovsrec_autoattachovsrec_autoattach_next (const struct ovsrec_autoattach *row)
 
void ovsrec_autoattach_delete (const struct ovsrec_autoattach *row)
 
struct ovsrec_autoattachovsrec_autoattach_insert (struct ovsdb_idl_txn *txn)
 
void ovsrec_autoattach_verify_mappings (const struct ovsrec_autoattach *row)
 
void ovsrec_autoattach_verify_system_description (const struct ovsrec_autoattach *row)
 
void ovsrec_autoattach_verify_system_name (const struct ovsrec_autoattach *row)
 
const struct ovsdb_datumovsrec_autoattach_get_mappings (const struct ovsrec_autoattach *row, enum ovsdb_atomic_type key_type OVS_UNUSED, enum ovsdb_atomic_type value_type OVS_UNUSED)
 
const struct ovsdb_datumovsrec_autoattach_get_system_description (const struct ovsrec_autoattach *row, enum ovsdb_atomic_type key_type OVS_UNUSED)
 
const struct ovsdb_datumovsrec_autoattach_get_system_name (const struct ovsrec_autoattach *row, enum ovsdb_atomic_type key_type OVS_UNUSED)
 
void ovsrec_autoattach_set_mappings (const struct ovsrec_autoattach *row, const int64_t *key_mappings, const int64_t *value_mappings, size_t n_mappings)
 
void ovsrec_autoattach_set_system_description (const struct ovsrec_autoattach *row, const char *system_description)
 
void ovsrec_autoattach_set_system_name (const struct ovsrec_autoattach *row, const char *system_name)
 
static void ovsrec_autoattach_columns_init (void)
 
static void ovsrec_bridge_parse_auto_attach (struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
 
static void ovsrec_bridge_parse_controller (struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
 
static void ovsrec_bridge_parse_datapath_id (struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
 
static void ovsrec_bridge_parse_datapath_type (struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
 
static void ovsrec_bridge_parse_datapath_version (struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
 
static void ovsrec_bridge_parse_external_ids (struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
 
static void ovsrec_bridge_parse_fail_mode (struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
 
static void ovsrec_bridge_parse_flood_vlans (struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
 
static void ovsrec_bridge_parse_flow_tables (struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
 
static void ovsrec_bridge_parse_ipfix (struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
 
static void ovsrec_bridge_parse_mcast_snooping_enable (struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
 
static void ovsrec_bridge_parse_mirrors (struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
 
static void ovsrec_bridge_parse_name (struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
 
static void ovsrec_bridge_parse_netflow (struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
 
static void ovsrec_bridge_parse_other_config (struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
 
static void ovsrec_bridge_parse_ports (struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
 
static void ovsrec_bridge_parse_protocols (struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
 
static void ovsrec_bridge_parse_rstp_enable (struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
 
static void ovsrec_bridge_parse_rstp_status (struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
 
static void ovsrec_bridge_parse_sflow (struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
 
static void ovsrec_bridge_parse_status (struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
 
static void ovsrec_bridge_parse_stp_enable (struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
 
static void ovsrec_bridge_unparse_auto_attach (struct ovsdb_idl_row *row OVS_UNUSED)
 
static void ovsrec_bridge_unparse_controller (struct ovsdb_idl_row *row_)
 
static void ovsrec_bridge_unparse_datapath_id (struct ovsdb_idl_row *row OVS_UNUSED)
 
static void ovsrec_bridge_unparse_datapath_type (struct ovsdb_idl_row *row OVS_UNUSED)
 
static void ovsrec_bridge_unparse_datapath_version (struct ovsdb_idl_row *row OVS_UNUSED)
 
static void ovsrec_bridge_unparse_external_ids (struct ovsdb_idl_row *row_)
 
static void ovsrec_bridge_unparse_fail_mode (struct ovsdb_idl_row *row OVS_UNUSED)
 
static void ovsrec_bridge_unparse_flood_vlans (struct ovsdb_idl_row *row_)
 
static void ovsrec_bridge_unparse_flow_tables (struct ovsdb_idl_row *row_)
 
static void ovsrec_bridge_unparse_ipfix (struct ovsdb_idl_row *row OVS_UNUSED)
 
static void ovsrec_bridge_unparse_mcast_snooping_enable (struct ovsdb_idl_row *row OVS_UNUSED)
 
static void ovsrec_bridge_unparse_mirrors (struct ovsdb_idl_row *row_)
 
static void ovsrec_bridge_unparse_name (struct ovsdb_idl_row *row OVS_UNUSED)
 
static void ovsrec_bridge_unparse_netflow (struct ovsdb_idl_row *row OVS_UNUSED)
 
static void ovsrec_bridge_unparse_other_config (struct ovsdb_idl_row *row_)
 
static void ovsrec_bridge_unparse_ports (struct ovsdb_idl_row *row_)
 
static void ovsrec_bridge_unparse_protocols (struct ovsdb_idl_row *row_)
 
static void ovsrec_bridge_unparse_rstp_enable (struct ovsdb_idl_row *row OVS_UNUSED)
 
static void ovsrec_bridge_unparse_rstp_status (struct ovsdb_idl_row *row_)
 
static void ovsrec_bridge_unparse_sflow (struct ovsdb_idl_row *row OVS_UNUSED)
 
static void ovsrec_bridge_unparse_status (struct ovsdb_idl_row *row_)
 
static void ovsrec_bridge_unparse_stp_enable (struct ovsdb_idl_row *row OVS_UNUSED)
 
static void ovsrec_bridge_init__ (struct ovsdb_idl_row *row)
 
void ovsrec_bridge_init (struct ovsrec_bridge *row)
 
const struct ovsrec_bridgeovsrec_bridge_get_for_uuid (const struct ovsdb_idl *idl, const struct uuid *uuid)
 
const struct ovsrec_bridgeovsrec_bridge_first (const struct ovsdb_idl *idl)
 
const struct ovsrec_bridgeovsrec_bridge_next (const struct ovsrec_bridge *row)
 
void ovsrec_bridge_delete (const struct ovsrec_bridge *row)
 
struct ovsrec_bridgeovsrec_bridge_insert (struct ovsdb_idl_txn *txn)
 
void ovsrec_bridge_verify_auto_attach (const struct ovsrec_bridge *row)
 
void ovsrec_bridge_verify_controller (const struct ovsrec_bridge *row)
 
void ovsrec_bridge_verify_datapath_id (const struct ovsrec_bridge *row)
 
void ovsrec_bridge_verify_datapath_type (const struct ovsrec_bridge *row)
 
void ovsrec_bridge_verify_datapath_version (const struct ovsrec_bridge *row)
 
void ovsrec_bridge_verify_external_ids (const struct ovsrec_bridge *row)
 
void ovsrec_bridge_verify_fail_mode (const struct ovsrec_bridge *row)
 
void ovsrec_bridge_verify_flood_vlans (const struct ovsrec_bridge *row)
 
void ovsrec_bridge_verify_flow_tables (const struct ovsrec_bridge *row)
 
void ovsrec_bridge_verify_ipfix (const struct ovsrec_bridge *row)
 
void ovsrec_bridge_verify_mcast_snooping_enable (const struct ovsrec_bridge *row)
 
void ovsrec_bridge_verify_mirrors (const struct ovsrec_bridge *row)
 
void ovsrec_bridge_verify_name (const struct ovsrec_bridge *row)
 
void ovsrec_bridge_verify_netflow (const struct ovsrec_bridge *row)
 
void ovsrec_bridge_verify_other_config (const struct ovsrec_bridge *row)
 
void ovsrec_bridge_verify_ports (const struct ovsrec_bridge *row)
 
void ovsrec_bridge_verify_protocols (const struct ovsrec_bridge *row)
 
void ovsrec_bridge_verify_rstp_enable (const struct ovsrec_bridge *row)
 
void ovsrec_bridge_verify_rstp_status (const struct ovsrec_bridge *row)
 
void ovsrec_bridge_verify_sflow (const struct ovsrec_bridge *row)
 
void ovsrec_bridge_verify_status (const struct ovsrec_bridge *row)
 
void ovsrec_bridge_verify_stp_enable (const struct ovsrec_bridge *row)
 
const struct ovsdb_datumovsrec_bridge_get_auto_attach (const struct ovsrec_bridge *row, enum ovsdb_atomic_type key_type OVS_UNUSED)
 
const struct ovsdb_datumovsrec_bridge_get_controller (const struct ovsrec_bridge *row, enum ovsdb_atomic_type key_type OVS_UNUSED)
 
const struct ovsdb_datumovsrec_bridge_get_datapath_id (const struct ovsrec_bridge *row, enum ovsdb_atomic_type key_type OVS_UNUSED)
 
const struct ovsdb_datumovsrec_bridge_get_datapath_type (const struct ovsrec_bridge *row, enum ovsdb_atomic_type key_type OVS_UNUSED)
 
const struct ovsdb_datumovsrec_bridge_get_datapath_version (const struct ovsrec_bridge *row, enum ovsdb_atomic_type key_type OVS_UNUSED)
 
const struct ovsdb_datumovsrec_bridge_get_external_ids (const struct ovsrec_bridge *row, enum ovsdb_atomic_type key_type OVS_UNUSED, enum ovsdb_atomic_type value_type OVS_UNUSED)
 
const struct ovsdb_datumovsrec_bridge_get_fail_mode (const struct ovsrec_bridge *row, enum ovsdb_atomic_type key_type OVS_UNUSED)
 
const struct ovsdb_datumovsrec_bridge_get_flood_vlans (const struct ovsrec_bridge *row, enum ovsdb_atomic_type key_type OVS_UNUSED)
 
const struct ovsdb_datumovsrec_bridge_get_flow_tables (const struct ovsrec_bridge *row, enum ovsdb_atomic_type key_type OVS_UNUSED, enum ovsdb_atomic_type value_type OVS_UNUSED)
 
const struct ovsdb_datumovsrec_bridge_get_ipfix (const struct ovsrec_bridge *row, enum ovsdb_atomic_type key_type OVS_UNUSED)
 
const struct ovsdb_datumovsrec_bridge_get_mcast_snooping_enable (const struct ovsrec_bridge *row, enum ovsdb_atomic_type key_type OVS_UNUSED)
 
const struct ovsdb_datumovsrec_bridge_get_mirrors (const struct ovsrec_bridge *row, enum ovsdb_atomic_type key_type OVS_UNUSED)
 
const struct ovsdb_datumovsrec_bridge_get_name (const struct ovsrec_bridge *row, enum ovsdb_atomic_type key_type OVS_UNUSED)
 
const struct ovsdb_datumovsrec_bridge_get_netflow (const struct ovsrec_bridge *row, enum ovsdb_atomic_type key_type OVS_UNUSED)
 
const struct ovsdb_datumovsrec_bridge_get_other_config (const struct ovsrec_bridge *row, enum ovsdb_atomic_type key_type OVS_UNUSED, enum ovsdb_atomic_type value_type OVS_UNUSED)
 
const struct ovsdb_datumovsrec_bridge_get_ports (const struct ovsrec_bridge *row, enum ovsdb_atomic_type key_type OVS_UNUSED)
 
const struct ovsdb_datumovsrec_bridge_get_protocols (const struct ovsrec_bridge *row, enum ovsdb_atomic_type key_type OVS_UNUSED)
 
const struct ovsdb_datumovsrec_bridge_get_rstp_enable (const struct ovsrec_bridge *row, enum ovsdb_atomic_type key_type OVS_UNUSED)
 
const struct ovsdb_datumovsrec_bridge_get_rstp_status (const struct ovsrec_bridge *row, enum ovsdb_atomic_type key_type OVS_UNUSED, enum ovsdb_atomic_type value_type OVS_UNUSED)
 
const struct ovsdb_datumovsrec_bridge_get_sflow (const struct ovsrec_bridge *row, enum ovsdb_atomic_type key_type OVS_UNUSED)
 
const struct ovsdb_datumovsrec_bridge_get_status (const struct ovsrec_bridge *row, enum ovsdb_atomic_type key_type OVS_UNUSED, enum ovsdb_atomic_type value_type OVS_UNUSED)
 
const struct ovsdb_datumovsrec_bridge_get_stp_enable (const struct ovsrec_bridge *row, enum ovsdb_atomic_type key_type OVS_UNUSED)
 
void ovsrec_bridge_set_auto_attach (const struct ovsrec_bridge *row, const struct ovsrec_autoattach *auto_attach)
 
void ovsrec_bridge_set_controller (const struct ovsrec_bridge *row, struct ovsrec_controller **controller, size_t n_controller)
 
void ovsrec_bridge_set_datapath_id (const struct ovsrec_bridge *row, const char *datapath_id)
 
void ovsrec_bridge_set_datapath_type (const struct ovsrec_bridge *row, const char *datapath_type)
 
void ovsrec_bridge_set_datapath_version (const struct ovsrec_bridge *row, const char *datapath_version)
 
void ovsrec_bridge_set_external_ids (const struct ovsrec_bridge *row, const struct smap *external_ids)
 
void ovsrec_bridge_set_fail_mode (const struct ovsrec_bridge *row, const char *fail_mode)
 
void ovsrec_bridge_set_flood_vlans (const struct ovsrec_bridge *row, const int64_t *flood_vlans, size_t n_flood_vlans)
 
void ovsrec_bridge_set_flow_tables (const struct ovsrec_bridge *row, const int64_t *key_flow_tables, struct ovsrec_flow_table **value_flow_tables, size_t n_flow_tables)
 
void ovsrec_bridge_set_ipfix (const struct ovsrec_bridge *row, const struct ovsrec_ipfix *ipfix)
 
void ovsrec_bridge_set_mcast_snooping_enable (const struct ovsrec_bridge *row, bool mcast_snooping_enable)
 
void ovsrec_bridge_set_mirrors (const struct ovsrec_bridge *row, struct ovsrec_mirror **mirrors, size_t n_mirrors)
 
void ovsrec_bridge_set_name (const struct ovsrec_bridge *row, const char *name)
 
void ovsrec_bridge_set_netflow (const struct ovsrec_bridge *row, const struct ovsrec_netflow *netflow)
 
void ovsrec_bridge_set_other_config (const struct ovsrec_bridge *row, const struct smap *other_config)
 
void ovsrec_bridge_set_ports (const struct ovsrec_bridge *row, struct ovsrec_port **ports, size_t n_ports)
 
void ovsrec_bridge_set_protocols (const struct ovsrec_bridge *row, const char **protocols, size_t n_protocols)
 
void ovsrec_bridge_set_rstp_enable (const struct ovsrec_bridge *row, bool rstp_enable)
 
void ovsrec_bridge_set_rstp_status (const struct ovsrec_bridge *row, const struct smap *rstp_status)
 
void ovsrec_bridge_set_sflow (const struct ovsrec_bridge *row, const struct ovsrec_sflow *sflow)
 
void ovsrec_bridge_set_status (const struct ovsrec_bridge *row, const struct smap *status)
 
void ovsrec_bridge_set_stp_enable (const struct ovsrec_bridge *row, bool stp_enable)
 
static void ovsrec_bridge_columns_init (void)
 
static void ovsrec_controller_parse_connection_mode (struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
 
static void ovsrec_controller_parse_controller_burst_limit (struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
 
static void ovsrec_controller_parse_controller_rate_limit (struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
 
static void ovsrec_controller_parse_enable_async_messages (struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
 
static void ovsrec_controller_parse_external_ids (struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
 
static void ovsrec_controller_parse_inactivity_probe (struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
 
static void ovsrec_controller_parse_is_connected (struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
 
static void ovsrec_controller_parse_local_gateway (struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
 
static void ovsrec_controller_parse_local_ip (struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
 
static void ovsrec_controller_parse_local_netmask (struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
 
static void ovsrec_controller_parse_max_backoff (struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
 
static void ovsrec_controller_parse_other_config (struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
 
static void ovsrec_controller_parse_role (struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
 
static void ovsrec_controller_parse_status (struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
 
static void ovsrec_controller_parse_target (struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
 
static void ovsrec_controller_unparse_connection_mode (struct ovsdb_idl_row *row OVS_UNUSED)
 
static void ovsrec_controller_unparse_controller_burst_limit (struct ovsdb_idl_row *row_)
 
static void ovsrec_controller_unparse_controller_rate_limit (struct ovsdb_idl_row *row_)
 
static void ovsrec_controller_unparse_enable_async_messages (struct ovsdb_idl_row *row_)
 
static void ovsrec_controller_unparse_external_ids (struct ovsdb_idl_row *row_)
 
static void ovsrec_controller_unparse_inactivity_probe (struct ovsdb_idl_row *row_)
 
static void ovsrec_controller_unparse_is_connected (struct ovsdb_idl_row *row OVS_UNUSED)
 
static void ovsrec_controller_unparse_local_gateway (struct ovsdb_idl_row *row OVS_UNUSED)
 
static void ovsrec_controller_unparse_local_ip (struct ovsdb_idl_row *row OVS_UNUSED)
 
static void ovsrec_controller_unparse_local_netmask (struct ovsdb_idl_row *row OVS_UNUSED)
 
static void ovsrec_controller_unparse_max_backoff (struct ovsdb_idl_row *row_)
 
static void ovsrec_controller_unparse_other_config (struct ovsdb_idl_row *row_)
 
static void ovsrec_controller_unparse_role (struct ovsdb_idl_row *row OVS_UNUSED)
 
static void ovsrec_controller_unparse_status (struct ovsdb_idl_row *row_)
 
static void ovsrec_controller_unparse_target (struct ovsdb_idl_row *row OVS_UNUSED)
 
static void ovsrec_controller_init__ (struct ovsdb_idl_row *row)
 
void ovsrec_controller_init (struct ovsrec_controller *row)
 
const struct ovsrec_controllerovsrec_controller_get_for_uuid (const struct ovsdb_idl *idl, const struct uuid *uuid)
 
const struct ovsrec_controllerovsrec_controller_first (const struct ovsdb_idl *idl)
 
const struct ovsrec_controllerovsrec_controller_next (const struct ovsrec_controller *row)
 
void ovsrec_controller_delete (const struct ovsrec_controller *row)
 
struct ovsrec_controllerovsrec_controller_insert (struct ovsdb_idl_txn *txn)
 
void ovsrec_controller_verify_connection_mode (const struct ovsrec_controller *row)
 
void ovsrec_controller_verify_controller_burst_limit (const struct ovsrec_controller *row)
 
void ovsrec_controller_verify_controller_rate_limit (const struct ovsrec_controller *row)
 
void ovsrec_controller_verify_enable_async_messages (const struct ovsrec_controller *row)
 
void ovsrec_controller_verify_external_ids (const struct ovsrec_controller *row)
 
void ovsrec_controller_verify_inactivity_probe (const struct ovsrec_controller *row)
 
void ovsrec_controller_verify_is_connected (const struct ovsrec_controller *row)
 
void ovsrec_controller_verify_local_gateway (const struct ovsrec_controller *row)
 
void ovsrec_controller_verify_local_ip (const struct ovsrec_controller *row)
 
void ovsrec_controller_verify_local_netmask (const struct ovsrec_controller *row)
 
void ovsrec_controller_verify_max_backoff (const struct ovsrec_controller *row)
 
void ovsrec_controller_verify_other_config (const struct ovsrec_controller *row)
 
void ovsrec_controller_verify_role (const struct ovsrec_controller *row)
 
void ovsrec_controller_verify_status (const struct ovsrec_controller *row)
 
void ovsrec_controller_verify_target (const struct ovsrec_controller *row)
 
const struct ovsdb_datumovsrec_controller_get_connection_mode (const struct ovsrec_controller *row, enum ovsdb_atomic_type key_type OVS_UNUSED)
 
const struct ovsdb_datumovsrec_controller_get_controller_burst_limit (const struct ovsrec_controller *row, enum ovsdb_atomic_type key_type OVS_UNUSED)
 
const struct ovsdb_datumovsrec_controller_get_controller_rate_limit (const struct ovsrec_controller *row, enum ovsdb_atomic_type key_type OVS_UNUSED)
 
const struct ovsdb_datumovsrec_controller_get_enable_async_messages (const struct ovsrec_controller *row, enum ovsdb_atomic_type key_type OVS_UNUSED)
 
const struct ovsdb_datumovsrec_controller_get_external_ids (const struct ovsrec_controller *row, enum ovsdb_atomic_type key_type OVS_UNUSED, enum ovsdb_atomic_type value_type OVS_UNUSED)
 
const struct ovsdb_datumovsrec_controller_get_inactivity_probe (const struct ovsrec_controller *row, enum ovsdb_atomic_type key_type OVS_UNUSED)
 
const struct ovsdb_datumovsrec_controller_get_is_connected (const struct ovsrec_controller *row, enum ovsdb_atomic_type key_type OVS_UNUSED)
 
const struct ovsdb_datumovsrec_controller_get_local_gateway (const struct ovsrec_controller *row, enum ovsdb_atomic_type key_type OVS_UNUSED)
 
const struct ovsdb_datumovsrec_controller_get_local_ip (const struct ovsrec_controller *row, enum ovsdb_atomic_type key_type OVS_UNUSED)
 
const struct ovsdb_datumovsrec_controller_get_local_netmask (const struct ovsrec_controller *row, enum ovsdb_atomic_type key_type OVS_UNUSED)
 
const struct ovsdb_datumovsrec_controller_get_max_backoff (const struct ovsrec_controller *row, enum ovsdb_atomic_type key_type OVS_UNUSED)
 
const struct ovsdb_datumovsrec_controller_get_other_config (const struct ovsrec_controller *row, enum ovsdb_atomic_type key_type OVS_UNUSED, enum ovsdb_atomic_type value_type OVS_UNUSED)
 
const struct ovsdb_datumovsrec_controller_get_role (const struct ovsrec_controller *row, enum ovsdb_atomic_type key_type OVS_UNUSED)
 
const struct ovsdb_datumovsrec_controller_get_status (const struct ovsrec_controller *row, enum ovsdb_atomic_type key_type OVS_UNUSED, enum ovsdb_atomic_type value_type OVS_UNUSED)
 
const struct ovsdb_datumovsrec_controller_get_target (const struct ovsrec_controller *row, enum ovsdb_atomic_type key_type OVS_UNUSED)
 
void ovsrec_controller_set_connection_mode (const struct ovsrec_controller *row, const char *connection_mode)
 
void ovsrec_controller_set_controller_burst_limit (const struct ovsrec_controller *row, const int64_t *controller_burst_limit, size_t n_controller_burst_limit)
 
void ovsrec_controller_set_controller_rate_limit (const struct ovsrec_controller *row, const int64_t *controller_rate_limit, size_t n_controller_rate_limit)
 
void ovsrec_controller_set_enable_async_messages (const struct ovsrec_controller *row, const bool *enable_async_messages, size_t n_enable_async_messages)
 
void ovsrec_controller_set_external_ids (const struct ovsrec_controller *row, const struct smap *external_ids)
 
void ovsrec_controller_set_inactivity_probe (const struct ovsrec_controller *row, const int64_t *inactivity_probe, size_t n_inactivity_probe)
 
void ovsrec_controller_set_is_connected (const struct ovsrec_controller *row, bool is_connected)
 
void ovsrec_controller_set_local_gateway (const struct ovsrec_controller *row, const char *local_gateway)
 
void ovsrec_controller_set_local_ip (const struct ovsrec_controller *row, const char *local_ip)
 
void ovsrec_controller_set_local_netmask (const struct ovsrec_controller *row, const char *local_netmask)
 
void ovsrec_controller_set_max_backoff (const struct ovsrec_controller *row, const int64_t *max_backoff, size_t n_max_backoff)
 
void ovsrec_controller_set_other_config (const struct ovsrec_controller *row, const struct smap *other_config)
 
void ovsrec_controller_set_role (const struct ovsrec_controller *row, const char *role)
 
void ovsrec_controller_set_status (const struct ovsrec_controller *row, const struct smap *status)
 
void ovsrec_controller_set_target (const struct ovsrec_controller *row, const char *target)
 
static void ovsrec_controller_columns_init (void)
 
static void ovsrec_flow_sample_collector_set_parse_bridge (struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
 
static void ovsrec_flow_sample_collector_set_parse_external_ids (struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
 
static void ovsrec_flow_sample_collector_set_parse_id (struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
 
static void ovsrec_flow_sample_collector_set_parse_ipfix (struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
 
static void ovsrec_flow_sample_collector_set_unparse_bridge (struct ovsdb_idl_row *row OVS_UNUSED)
 
static void ovsrec_flow_sample_collector_set_unparse_external_ids (struct ovsdb_idl_row *row_)
 
static void ovsrec_flow_sample_collector_set_unparse_id (struct ovsdb_idl_row *row OVS_UNUSED)
 
static void ovsrec_flow_sample_collector_set_unparse_ipfix (struct ovsdb_idl_row *row OVS_UNUSED)
 
static void ovsrec_flow_sample_collector_set_init__ (struct ovsdb_idl_row *row)
 
void ovsrec_flow_sample_collector_set_init (struct ovsrec_flow_sample_collector_set *row)
 
const struct ovsrec_flow_sample_collector_setovsrec_flow_sample_collector_set_get_for_uuid (const struct ovsdb_idl *idl, const struct uuid *uuid)
 
const struct ovsrec_flow_sample_collector_setovsrec_flow_sample_collector_set_first (const struct ovsdb_idl *idl)
 
const struct ovsrec_flow_sample_collector_setovsrec_flow_sample_collector_set_next (const struct ovsrec_flow_sample_collector_set *row)
 
void ovsrec_flow_sample_collector_set_delete (const struct ovsrec_flow_sample_collector_set *row)
 
struct ovsrec_flow_sample_collector_setovsrec_flow_sample_collector_set_insert (struct ovsdb_idl_txn *txn)
 
void ovsrec_flow_sample_collector_set_verify_bridge (const struct ovsrec_flow_sample_collector_set *row)
 
void ovsrec_flow_sample_collector_set_verify_external_ids (const struct ovsrec_flow_sample_collector_set *row)
 
void ovsrec_flow_sample_collector_set_verify_id (const struct ovsrec_flow_sample_collector_set *row)
 
void ovsrec_flow_sample_collector_set_verify_ipfix (const struct ovsrec_flow_sample_collector_set *row)
 
const struct ovsdb_datumovsrec_flow_sample_collector_set_get_bridge (const struct ovsrec_flow_sample_collector_set *row, enum ovsdb_atomic_type key_type OVS_UNUSED)
 
const struct ovsdb_datumovsrec_flow_sample_collector_set_get_external_ids (const struct ovsrec_flow_sample_collector_set *row, enum ovsdb_atomic_type key_type OVS_UNUSED, enum ovsdb_atomic_type value_type OVS_UNUSED)
 
const struct ovsdb_datumovsrec_flow_sample_collector_set_get_id (const struct ovsrec_flow_sample_collector_set *row, enum ovsdb_atomic_type key_type OVS_UNUSED)
 
const struct ovsdb_datumovsrec_flow_sample_collector_set_get_ipfix (const struct ovsrec_flow_sample_collector_set *row, enum ovsdb_atomic_type key_type OVS_UNUSED)
 
void ovsrec_flow_sample_collector_set_set_bridge (const struct ovsrec_flow_sample_collector_set *row, const struct ovsrec_bridge *bridge)
 
void ovsrec_flow_sample_collector_set_set_external_ids (const struct ovsrec_flow_sample_collector_set *row, const struct smap *external_ids)
 
void ovsrec_flow_sample_collector_set_set_id (const struct ovsrec_flow_sample_collector_set *row, int64_t id)
 
void ovsrec_flow_sample_collector_set_set_ipfix (const struct ovsrec_flow_sample_collector_set *row, const struct ovsrec_ipfix *ipfix)
 
static void ovsrec_flow_sample_collector_set_columns_init (void)
 
static void ovsrec_flow_table_parse_external_ids (struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
 
static void ovsrec_flow_table_parse_flow_limit (struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
 
static void ovsrec_flow_table_parse_groups (struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
 
static void ovsrec_flow_table_parse_name (struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
 
static void ovsrec_flow_table_parse_overflow_policy (struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
 
static void ovsrec_flow_table_parse_prefixes (struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
 
static void ovsrec_flow_table_unparse_external_ids (struct ovsdb_idl_row *row_)
 
static void ovsrec_flow_table_unparse_flow_limit (struct ovsdb_idl_row *row_)
 
static void ovsrec_flow_table_unparse_groups (struct ovsdb_idl_row *row_)
 
static void ovsrec_flow_table_unparse_name (struct ovsdb_idl_row *row OVS_UNUSED)
 
static void ovsrec_flow_table_unparse_overflow_policy (struct ovsdb_idl_row *row OVS_UNUSED)
 
static void ovsrec_flow_table_unparse_prefixes (struct ovsdb_idl_row *row_)
 
static void ovsrec_flow_table_init__ (struct ovsdb_idl_row *row)
 
void ovsrec_flow_table_init (struct ovsrec_flow_table *row)
 
const struct ovsrec_flow_tableovsrec_flow_table_get_for_uuid (const struct ovsdb_idl *idl, const struct uuid *uuid)
 
const struct ovsrec_flow_tableovsrec_flow_table_first (const struct ovsdb_idl *idl)
 
const struct ovsrec_flow_tableovsrec_flow_table_next (const struct ovsrec_flow_table *row)
 
void ovsrec_flow_table_delete (const struct ovsrec_flow_table *row)
 
struct ovsrec_flow_tableovsrec_flow_table_insert (struct ovsdb_idl_txn *txn)
 
void ovsrec_flow_table_verify_external_ids (const struct ovsrec_flow_table *row)
 
void ovsrec_flow_table_verify_flow_limit (const struct ovsrec_flow_table *row)
 
void ovsrec_flow_table_verify_groups (const struct ovsrec_flow_table *row)
 
void ovsrec_flow_table_verify_name (const struct ovsrec_flow_table *row)
 
void ovsrec_flow_table_verify_overflow_policy (const struct ovsrec_flow_table *row)
 
void ovsrec_flow_table_verify_prefixes (const struct ovsrec_flow_table *row)
 
const struct ovsdb_datumovsrec_flow_table_get_external_ids (const struct ovsrec_flow_table *row, enum ovsdb_atomic_type key_type OVS_UNUSED, enum ovsdb_atomic_type value_type OVS_UNUSED)
 
const struct ovsdb_datumovsrec_flow_table_get_flow_limit (const struct ovsrec_flow_table *row, enum ovsdb_atomic_type key_type OVS_UNUSED)
 
const struct ovsdb_datumovsrec_flow_table_get_groups (const struct ovsrec_flow_table *row, enum ovsdb_atomic_type key_type OVS_UNUSED)
 
const struct ovsdb_datumovsrec_flow_table_get_name (const struct ovsrec_flow_table *row, enum ovsdb_atomic_type key_type OVS_UNUSED)
 
const struct ovsdb_datumovsrec_flow_table_get_overflow_policy (const struct ovsrec_flow_table *row, enum ovsdb_atomic_type key_type OVS_UNUSED)
 
const struct ovsdb_datumovsrec_flow_table_get_prefixes (const struct ovsrec_flow_table *row, enum ovsdb_atomic_type key_type OVS_UNUSED)
 
void ovsrec_flow_table_set_external_ids (const struct ovsrec_flow_table *row, const struct smap *external_ids)
 
void ovsrec_flow_table_set_flow_limit (const struct ovsrec_flow_table *row, const int64_t *flow_limit, size_t n_flow_limit)
 
void ovsrec_flow_table_set_groups (const struct ovsrec_flow_table *row, const char **groups, size_t n_groups)
 
void ovsrec_flow_table_set_name (const struct ovsrec_flow_table *row, const char *name)
 
void ovsrec_flow_table_set_overflow_policy (const struct ovsrec_flow_table *row, const char *overflow_policy)
 
void ovsrec_flow_table_set_prefixes (const struct ovsrec_flow_table *row, const char **prefixes, size_t n_prefixes)
 
static void ovsrec_flow_table_columns_init (void)
 
static void ovsrec_ipfix_parse_cache_active_timeout (struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
 
static void ovsrec_ipfix_parse_cache_max_flows (struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
 
static void ovsrec_ipfix_parse_external_ids (struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
 
static void ovsrec_ipfix_parse_obs_domain_id (struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
 
static void ovsrec_ipfix_parse_obs_point_id (struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
 
static void ovsrec_ipfix_parse_other_config (struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
 
static void ovsrec_ipfix_parse_sampling (struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
 
static void ovsrec_ipfix_parse_targets (struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
 
static void ovsrec_ipfix_unparse_cache_active_timeout (struct ovsdb_idl_row *row_)
 
static void ovsrec_ipfix_unparse_cache_max_flows (struct ovsdb_idl_row *row_)
 
static void ovsrec_ipfix_unparse_external_ids (struct ovsdb_idl_row *row_)
 
static void ovsrec_ipfix_unparse_obs_domain_id (struct ovsdb_idl_row *row_)
 
static void ovsrec_ipfix_unparse_obs_point_id (struct ovsdb_idl_row *row_)
 
static void ovsrec_ipfix_unparse_other_config (struct ovsdb_idl_row *row_)
 
static void ovsrec_ipfix_unparse_sampling (struct ovsdb_idl_row *row_)
 
static void ovsrec_ipfix_unparse_targets (struct ovsdb_idl_row *row_)
 
static void ovsrec_ipfix_init__ (struct ovsdb_idl_row *row)
 
void ovsrec_ipfix_init (struct ovsrec_ipfix *row)
 
const struct ovsrec_ipfixovsrec_ipfix_get_for_uuid (const struct ovsdb_idl *idl, const struct uuid *uuid)
 
const struct ovsrec_ipfixovsrec_ipfix_first (const struct ovsdb_idl *idl)
 
const struct ovsrec_ipfixovsrec_ipfix_next (const struct ovsrec_ipfix *row)
 
void ovsrec_ipfix_delete (const struct ovsrec_ipfix *row)
 
struct ovsrec_ipfixovsrec_ipfix_insert (struct ovsdb_idl_txn *txn)
 
void ovsrec_ipfix_verify_cache_active_timeout (const struct ovsrec_ipfix *row)
 
void ovsrec_ipfix_verify_cache_max_flows (const struct ovsrec_ipfix *row)
 
void ovsrec_ipfix_verify_external_ids (const struct ovsrec_ipfix *row)
 
void ovsrec_ipfix_verify_obs_domain_id (const struct ovsrec_ipfix *row)
 
void ovsrec_ipfix_verify_obs_point_id (const struct ovsrec_ipfix *row)
 
void ovsrec_ipfix_verify_other_config (const struct ovsrec_ipfix *row)
 
void ovsrec_ipfix_verify_sampling (const struct ovsrec_ipfix *row)
 
void ovsrec_ipfix_verify_targets (const struct ovsrec_ipfix *row)
 
const struct ovsdb_datumovsrec_ipfix_get_cache_active_timeout (const struct ovsrec_ipfix *row, enum ovsdb_atomic_type key_type OVS_UNUSED)
 
const struct ovsdb_datumovsrec_ipfix_get_cache_max_flows (const struct ovsrec_ipfix *row, enum ovsdb_atomic_type key_type OVS_UNUSED)
 
const struct ovsdb_datumovsrec_ipfix_get_external_ids (const struct ovsrec_ipfix *row, enum ovsdb_atomic_type key_type OVS_UNUSED, enum ovsdb_atomic_type value_type OVS_UNUSED)
 
const struct ovsdb_datumovsrec_ipfix_get_obs_domain_id (const struct ovsrec_ipfix *row, enum ovsdb_atomic_type key_type OVS_UNUSED)
 
const struct ovsdb_datumovsrec_ipfix_get_obs_point_id (const struct ovsrec_ipfix *row, enum ovsdb_atomic_type key_type OVS_UNUSED)
 
const struct ovsdb_datumovsrec_ipfix_get_other_config (const struct ovsrec_ipfix *row, enum ovsdb_atomic_type key_type OVS_UNUSED, enum ovsdb_atomic_type value_type OVS_UNUSED)
 
const struct ovsdb_datumovsrec_ipfix_get_sampling (const struct ovsrec_ipfix *row, enum ovsdb_atomic_type key_type OVS_UNUSED)
 
const struct ovsdb_datumovsrec_ipfix_get_targets (const struct ovsrec_ipfix *row, enum ovsdb_atomic_type key_type OVS_UNUSED)
 
void ovsrec_ipfix_set_cache_active_timeout (const struct ovsrec_ipfix *row, const int64_t *cache_active_timeout, size_t n_cache_active_timeout)
 
void ovsrec_ipfix_set_cache_max_flows (const struct ovsrec_ipfix *row, const int64_t *cache_max_flows, size_t n_cache_max_flows)
 
void ovsrec_ipfix_set_external_ids (const struct ovsrec_ipfix *row, const struct smap *external_ids)
 
void ovsrec_ipfix_set_obs_domain_id (const struct ovsrec_ipfix *row, const int64_t *obs_domain_id, size_t n_obs_domain_id)
 
void ovsrec_ipfix_set_obs_point_id (const struct ovsrec_ipfix *row, const int64_t *obs_point_id, size_t n_obs_point_id)
 
void ovsrec_ipfix_set_other_config (const struct ovsrec_ipfix *row, const struct smap *other_config)
 
void ovsrec_ipfix_set_sampling (const struct ovsrec_ipfix *row, const int64_t *sampling, size_t n_sampling)
 
void ovsrec_ipfix_set_targets (const struct ovsrec_ipfix *row, const char **targets, size_t n_targets)
 
static void ovsrec_ipfix_columns_init (void)
 
static void ovsrec_interface_parse_admin_state (struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
 
static void ovsrec_interface_parse_bfd (struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
 
static void ovsrec_interface_parse_bfd_status (struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
 
static void ovsrec_interface_parse_cfm_fault (struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
 
static void ovsrec_interface_parse_cfm_fault_status (struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
 
static void ovsrec_interface_parse_cfm_flap_count (struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
 
static void ovsrec_interface_parse_cfm_health (struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
 
static void ovsrec_interface_parse_cfm_mpid (struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
 
static void ovsrec_interface_parse_cfm_remote_mpids (struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
 
static void ovsrec_interface_parse_cfm_remote_opstate (struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
 
static void ovsrec_interface_parse_duplex (struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
 
static void ovsrec_interface_parse_error (struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
 
static void ovsrec_interface_parse_external_ids (struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
 
static void ovsrec_interface_parse_ifindex (struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
 
static void ovsrec_interface_parse_ingress_policing_burst (struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
 
static void ovsrec_interface_parse_ingress_policing_rate (struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
 
static void ovsrec_interface_parse_lacp_current (struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
 
static void ovsrec_interface_parse_link_resets (struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
 
static void ovsrec_interface_parse_link_speed (struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
 
static void ovsrec_interface_parse_link_state (struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
 
static void ovsrec_interface_parse_lldp (struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
 
static void ovsrec_interface_parse_mac (struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
 
static void ovsrec_interface_parse_mac_in_use (struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
 
static void ovsrec_interface_parse_mtu (struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
 
static void ovsrec_interface_parse_name (struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
 
static void ovsrec_interface_parse_ofport (struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
 
static void ovsrec_interface_parse_ofport_request (struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
 
static void ovsrec_interface_parse_options (struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
 
static void ovsrec_interface_parse_other_config (struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
 
static void ovsrec_interface_parse_statistics (struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
 
static void ovsrec_interface_parse_status (struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
 
static void ovsrec_interface_parse_type (struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
 
static void ovsrec_interface_unparse_admin_state (struct ovsdb_idl_row *row OVS_UNUSED)
 
static void ovsrec_interface_unparse_bfd (struct ovsdb_idl_row *row_)
 
static void ovsrec_interface_unparse_bfd_status (struct ovsdb_idl_row *row_)
 
static void ovsrec_interface_unparse_cfm_fault (struct ovsdb_idl_row *row_)
 
static void ovsrec_interface_unparse_cfm_fault_status (struct ovsdb_idl_row *row_)
 
static void ovsrec_interface_unparse_cfm_flap_count (struct ovsdb_idl_row *row_)
 
static void ovsrec_interface_unparse_cfm_health (struct ovsdb_idl_row *row_)
 
static void ovsrec_interface_unparse_cfm_mpid (struct ovsdb_idl_row *row_)
 
static void ovsrec_interface_unparse_cfm_remote_mpids (struct ovsdb_idl_row *row_)
 
static void ovsrec_interface_unparse_cfm_remote_opstate (struct ovsdb_idl_row *row OVS_UNUSED)
 
static void ovsrec_interface_unparse_duplex (struct ovsdb_idl_row *row OVS_UNUSED)
 
static void ovsrec_interface_unparse_error (struct ovsdb_idl_row *row OVS_UNUSED)
 
static void ovsrec_interface_unparse_external_ids (struct ovsdb_idl_row *row_)
 
static void ovsrec_interface_unparse_ifindex (struct ovsdb_idl_row *row_)
 
static void ovsrec_interface_unparse_ingress_policing_burst (struct ovsdb_idl_row *row OVS_UNUSED)
 
static void ovsrec_interface_unparse_ingress_policing_rate (struct ovsdb_idl_row *row OVS_UNUSED)
 
static void ovsrec_interface_unparse_lacp_current (struct ovsdb_idl_row *row_)
 
static void ovsrec_interface_unparse_link_resets (struct ovsdb_idl_row *row_)
 
static void ovsrec_interface_unparse_link_speed (struct ovsdb_idl_row *row_)
 
static void ovsrec_interface_unparse_link_state (struct ovsdb_idl_row *row OVS_UNUSED)
 
static void ovsrec_interface_unparse_lldp (struct ovsdb_idl_row *row_)
 
static void ovsrec_interface_unparse_mac (struct ovsdb_idl_row *row OVS_UNUSED)
 
static void ovsrec_interface_unparse_mac_in_use (struct ovsdb_idl_row *row OVS_UNUSED)
 
static void ovsrec_interface_unparse_mtu (struct ovsdb_idl_row *row_)
 
static void ovsrec_interface_unparse_name (struct ovsdb_idl_row *row OVS_UNUSED)
 
static void ovsrec_interface_unparse_ofport (struct ovsdb_idl_row *row_)
 
static void ovsrec_interface_unparse_ofport_request (struct ovsdb_idl_row *row_)
 
static void ovsrec_interface_unparse_options (struct ovsdb_idl_row *row_)
 
static void ovsrec_interface_unparse_other_config (struct ovsdb_idl_row *row_)
 
static void ovsrec_interface_unparse_statistics (struct ovsdb_idl_row *row_)
 
static void ovsrec_interface_unparse_status (struct ovsdb_idl_row *row_)
 
static void ovsrec_interface_unparse_type (struct ovsdb_idl_row *row OVS_UNUSED)
 
static void ovsrec_interface_init__ (struct ovsdb_idl_row *row)
 
void ovsrec_interface_init (struct ovsrec_interface *row)
 
const struct ovsrec_interfaceovsrec_interface_get_for_uuid (const struct ovsdb_idl *idl, const struct uuid *uuid)
 
const struct ovsrec_interfaceovsrec_interface_first (const struct ovsdb_idl *idl)
 
const struct ovsrec_interfaceovsrec_interface_next (const struct ovsrec_interface *row)
 
void ovsrec_interface_delete (const struct ovsrec_interface *row)
 
struct ovsrec_interfaceovsrec_interface_insert (struct ovsdb_idl_txn *txn)
 
void ovsrec_interface_verify_admin_state (const struct ovsrec_interface *row)
 
void ovsrec_interface_verify_bfd (const struct ovsrec_interface *row)
 
void ovsrec_interface_verify_bfd_status (const struct ovsrec_interface *row)
 
void ovsrec_interface_verify_cfm_fault (const struct ovsrec_interface *row)
 
void ovsrec_interface_verify_cfm_fault_status (const struct ovsrec_interface *row)
 
void ovsrec_interface_verify_cfm_flap_count (const struct ovsrec_interface *row)
 
void ovsrec_interface_verify_cfm_health (const struct ovsrec_interface *row)
 
void ovsrec_interface_verify_cfm_mpid (const struct ovsrec_interface *row)
 
void ovsrec_interface_verify_cfm_remote_mpids (const struct ovsrec_interface *row)
 
void ovsrec_interface_verify_cfm_remote_opstate (const struct ovsrec_interface *row)
 
void ovsrec_interface_verify_duplex (const struct ovsrec_interface *row)
 
void ovsrec_interface_verify_error (const struct ovsrec_interface *row)
 
void ovsrec_interface_verify_external_ids (const struct ovsrec_interface *row)
 
void ovsrec_interface_verify_ifindex (const struct ovsrec_interface *row)
 
void ovsrec_interface_verify_ingress_policing_burst (const struct ovsrec_interface *row)
 
void ovsrec_interface_verify_ingress_policing_rate (const struct ovsrec_interface *row)
 
void ovsrec_interface_verify_lacp_current (const struct ovsrec_interface *row)
 
void ovsrec_interface_verify_link_resets (const struct ovsrec_interface *row)
 
void ovsrec_interface_verify_link_speed (const struct ovsrec_interface *row)
 
void ovsrec_interface_verify_link_state (const struct ovsrec_interface *row)
 
void ovsrec_interface_verify_lldp (const struct ovsrec_interface *row)
 
void ovsrec_interface_verify_mac (const struct ovsrec_interface *row)
 
void ovsrec_interface_verify_mac_in_use (const struct ovsrec_interface *row)
 
void ovsrec_interface_verify_mtu (const struct ovsrec_interface *row)
 
void ovsrec_interface_verify_name (const struct ovsrec_interface *row)
 
void ovsrec_interface_verify_ofport (const struct ovsrec_interface *row)
 
void ovsrec_interface_verify_ofport_request (const struct ovsrec_interface *row)
 
void ovsrec_interface_verify_options (const struct ovsrec_interface *row)
 
void ovsrec_interface_verify_other_config (const struct ovsrec_interface *row)
 
void ovsrec_interface_verify_statistics (const struct ovsrec_interface *row)
 
void ovsrec_interface_verify_status (const struct ovsrec_interface *row)
 
void ovsrec_interface_verify_type (const struct ovsrec_interface *row)
 
const struct ovsdb_datumovsrec_interface_get_admin_state (const struct ovsrec_interface *row, enum ovsdb_atomic_type key_type OVS_UNUSED)
 
const struct ovsdb_datumovsrec_interface_get_bfd (const struct ovsrec_interface *row, enum ovsdb_atomic_type key_type OVS_UNUSED, enum ovsdb_atomic_type value_type OVS_UNUSED)
 
const struct ovsdb_datumovsrec_interface_get_bfd_status (const struct ovsrec_interface *row, enum ovsdb_atomic_type key_type OVS_UNUSED, enum ovsdb_atomic_type value_type OVS_UNUSED)
 
const struct ovsdb_datumovsrec_interface_get_cfm_fault (const struct ovsrec_interface *row, enum ovsdb_atomic_type key_type OVS_UNUSED)
 
const struct ovsdb_datumovsrec_interface_get_cfm_fault_status (const struct ovsrec_interface *row, enum ovsdb_atomic_type key_type OVS_UNUSED)
 
const struct ovsdb_datumovsrec_interface_get_cfm_flap_count (const struct ovsrec_interface *row, enum ovsdb_atomic_type key_type OVS_UNUSED)
 
const struct ovsdb_datumovsrec_interface_get_cfm_health (const struct ovsrec_interface *row, enum ovsdb_atomic_type key_type OVS_UNUSED)
 
const struct ovsdb_datumovsrec_interface_get_cfm_mpid (const struct ovsrec_interface *row, enum ovsdb_atomic_type key_type OVS_UNUSED)
 
const struct ovsdb_datumovsrec_interface_get_cfm_remote_mpids (const struct ovsrec_interface *row, enum ovsdb_atomic_type key_type OVS_UNUSED)
 
const struct ovsdb_datumovsrec_interface_get_cfm_remote_opstate (const struct ovsrec_interface *row, enum ovsdb_atomic_type key_type OVS_UNUSED)
 
const struct ovsdb_datumovsrec_interface_get_duplex (const struct ovsrec_interface *row, enum ovsdb_atomic_type key_type OVS_UNUSED)
 
const struct ovsdb_datumovsrec_interface_get_error (const struct ovsrec_interface *row, enum ovsdb_atomic_type key_type OVS_UNUSED)
 
const struct ovsdb_datumovsrec_interface_get_external_ids (const struct ovsrec_interface *row, enum ovsdb_atomic_type key_type OVS_UNUSED, enum ovsdb_atomic_type value_type OVS_UNUSED)
 
const struct ovsdb_datumovsrec_interface_get_ifindex (const struct ovsrec_interface *row, enum ovsdb_atomic_type key_type OVS_UNUSED)
 
const struct ovsdb_datumovsrec_interface_get_ingress_policing_burst (const struct ovsrec_interface *row, enum ovsdb_atomic_type key_type OVS_UNUSED)
 
const struct ovsdb_datumovsrec_interface_get_ingress_policing_rate (const struct ovsrec_interface *row, enum ovsdb_atomic_type key_type OVS_UNUSED)
 
const struct ovsdb_datumovsrec_interface_get_lacp_current (const struct ovsrec_interface *row, enum ovsdb_atomic_type key_type OVS_UNUSED)
 
const struct ovsdb_datumovsrec_interface_get_link_resets (const struct ovsrec_interface *row, enum ovsdb_atomic_type key_type OVS_UNUSED)
 
const struct ovsdb_datumovsrec_interface_get_link_speed (const struct ovsrec_interface *row, enum ovsdb_atomic_type key_type OVS_UNUSED)
 
const struct ovsdb_datumovsrec_interface_get_link_state (const struct ovsrec_interface *row, enum ovsdb_atomic_type key_type OVS_UNUSED)
 
const struct ovsdb_datumovsrec_interface_get_lldp (const struct ovsrec_interface *row, enum ovsdb_atomic_type key_type OVS_UNUSED, enum ovsdb_atomic_type value_type OVS_UNUSED)
 
const struct ovsdb_datumovsrec_interface_get_mac (const struct ovsrec_interface *row, enum ovsdb_atomic_type key_type OVS_UNUSED)
 
const struct ovsdb_datumovsrec_interface_get_mac_in_use (const struct ovsrec_interface *row, enum ovsdb_atomic_type key_type OVS_UNUSED)
 
const struct ovsdb_datumovsrec_interface_get_mtu (const struct ovsrec_interface *row, enum ovsdb_atomic_type key_type OVS_UNUSED)
 
const struct ovsdb_datumovsrec_interface_get_name (const struct ovsrec_interface *row, enum ovsdb_atomic_type key_type OVS_UNUSED)
 
const struct ovsdb_datumovsrec_interface_get_ofport (const struct ovsrec_interface *row, enum ovsdb_atomic_type key_type OVS_UNUSED)
 
const struct ovsdb_datumovsrec_interface_get_ofport_request (const struct ovsrec_interface *row, enum ovsdb_atomic_type key_type OVS_UNUSED)
 
const struct ovsdb_datumovsrec_interface_get_options (const struct ovsrec_interface *row, enum ovsdb_atomic_type key_type OVS_UNUSED, enum ovsdb_atomic_type value_type OVS_UNUSED)
 
const struct ovsdb_datumovsrec_interface_get_other_config (const struct ovsrec_interface *row, enum ovsdb_atomic_type key_type OVS_UNUSED, enum ovsdb_atomic_type value_type OVS_UNUSED)
 
const struct ovsdb_datumovsrec_interface_get_statistics (const struct ovsrec_interface *row, enum ovsdb_atomic_type key_type OVS_UNUSED, enum ovsdb_atomic_type value_type OVS_UNUSED)
 
const struct ovsdb_datumovsrec_interface_get_status (const struct ovsrec_interface *row, enum ovsdb_atomic_type key_type OVS_UNUSED, enum ovsdb_atomic_type value_type OVS_UNUSED)
 
const struct ovsdb_datumovsrec_interface_get_type (const struct ovsrec_interface *row, enum ovsdb_atomic_type key_type OVS_UNUSED)
 
void ovsrec_interface_set_admin_state (const struct ovsrec_interface *row, const char *admin_state)
 
void ovsrec_interface_set_bfd (const struct ovsrec_interface *row, const struct smap *bfd)
 
void ovsrec_interface_set_bfd_status (const struct ovsrec_interface *row, const struct smap *bfd_status)
 
void ovsrec_interface_set_cfm_fault (const struct ovsrec_interface *row, const bool *cfm_fault, size_t n_cfm_fault)
 
void ovsrec_interface_set_cfm_fault_status (const struct ovsrec_interface *row, const char **cfm_fault_status, size_t n_cfm_fault_status)
 
void ovsrec_interface_set_cfm_flap_count (const struct ovsrec_interface *row, const int64_t *cfm_flap_count, size_t n_cfm_flap_count)
 
void ovsrec_interface_set_cfm_health (const struct ovsrec_interface *row, const int64_t *cfm_health, size_t n_cfm_health)
 
void ovsrec_interface_set_cfm_mpid (const struct ovsrec_interface *row, const int64_t *cfm_mpid, size_t n_cfm_mpid)
 
void ovsrec_interface_set_cfm_remote_mpids (const struct ovsrec_interface *row, const int64_t *cfm_remote_mpids, size_t n_cfm_remote_mpids)
 
void ovsrec_interface_set_cfm_remote_opstate (const struct ovsrec_interface *row, const char *cfm_remote_opstate)
 
void ovsrec_interface_set_duplex (const struct ovsrec_interface *row, const char *duplex)
 
void ovsrec_interface_set_error (const struct ovsrec_interface *row, const char *error)
 
void ovsrec_interface_set_external_ids (const struct ovsrec_interface *row, const struct smap *external_ids)
 
void ovsrec_interface_set_ifindex (const struct ovsrec_interface *row, const int64_t *ifindex, size_t n_ifindex)
 
void ovsrec_interface_set_ingress_policing_burst (const struct ovsrec_interface *row, int64_t ingress_policing_burst)
 
void ovsrec_interface_set_ingress_policing_rate (const struct ovsrec_interface *row, int64_t ingress_policing_rate)
 
void ovsrec_interface_set_lacp_current (const struct ovsrec_interface *row, const bool *lacp_current, size_t n_lacp_current)
 
void ovsrec_interface_set_link_resets (const struct ovsrec_interface *row, const int64_t *link_resets, size_t n_link_resets)
 
void ovsrec_interface_set_link_speed (const struct ovsrec_interface *row, const int64_t *link_speed, size_t n_link_speed)
 
void ovsrec_interface_set_link_state (const struct ovsrec_interface *row, const char *link_state)
 
void ovsrec_interface_set_lldp (const struct ovsrec_interface *row, const struct smap *lldp)
 
void ovsrec_interface_set_mac (const struct ovsrec_interface *row, const char *mac)
 
void ovsrec_interface_set_mac_in_use (const struct ovsrec_interface *row, const char *mac_in_use)
 
void ovsrec_interface_set_mtu (const struct ovsrec_interface *row, const int64_t *mtu, size_t n_mtu)
 
void ovsrec_interface_set_name (const struct ovsrec_interface *row, const char *name)
 
void ovsrec_interface_set_ofport (const struct ovsrec_interface *row, const int64_t *ofport, size_t n_ofport)
 
void ovsrec_interface_set_ofport_request (const struct ovsrec_interface *row, const int64_t *ofport_request, size_t n_ofport_request)
 
void ovsrec_interface_set_options (const struct ovsrec_interface *row, const struct smap *options)
 
void ovsrec_interface_set_other_config (const struct ovsrec_interface *row, const struct smap *other_config)
 
void ovsrec_interface_set_statistics (const struct ovsrec_interface *row, const char **key_statistics, const int64_t *value_statistics, size_t n_statistics)
 
void ovsrec_interface_set_status (const struct ovsrec_interface *row, const struct smap *status)
 
void ovsrec_interface_set_type (const struct ovsrec_interface *row, const char *type)
 
static void ovsrec_interface_columns_init (void)
 
static void ovsrec_manager_parse_connection_mode (struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
 
static void ovsrec_manager_parse_external_ids (struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
 
static void ovsrec_manager_parse_inactivity_probe (struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
 
static void ovsrec_manager_parse_is_connected (struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
 
static void ovsrec_manager_parse_max_backoff (struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
 
static void ovsrec_manager_parse_other_config (struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
 
static void ovsrec_manager_parse_status (struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
 
static void ovsrec_manager_parse_target (struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
 
static void ovsrec_manager_unparse_connection_mode (struct ovsdb_idl_row *row OVS_UNUSED)
 
static void ovsrec_manager_unparse_external_ids (struct ovsdb_idl_row *row_)
 
static void ovsrec_manager_unparse_inactivity_probe (struct ovsdb_idl_row *row_)
 
static void ovsrec_manager_unparse_is_connected (struct ovsdb_idl_row *row OVS_UNUSED)
 
static void ovsrec_manager_unparse_max_backoff (struct ovsdb_idl_row *row_)
 
static void ovsrec_manager_unparse_other_config (struct ovsdb_idl_row *row_)
 
static void ovsrec_manager_unparse_status (struct ovsdb_idl_row *row_)
 
static void ovsrec_manager_unparse_target (struct ovsdb_idl_row *row OVS_UNUSED)
 
static void ovsrec_manager_init__ (struct ovsdb_idl_row *row)
 
void ovsrec_manager_init (struct ovsrec_manager *row)
 
const struct ovsrec_managerovsrec_manager_get_for_uuid (const struct ovsdb_idl *idl, const struct uuid *uuid)
 
const struct ovsrec_managerovsrec_manager_first (const struct ovsdb_idl *idl)
 
const struct ovsrec_managerovsrec_manager_next (const struct ovsrec_manager *row)
 
void ovsrec_manager_delete (const struct ovsrec_manager *row)
 
struct ovsrec_managerovsrec_manager_insert (struct ovsdb_idl_txn *txn)
 
void ovsrec_manager_verify_connection_mode (const struct ovsrec_manager *row)
 
void ovsrec_manager_verify_external_ids (const struct ovsrec_manager *row)
 
void ovsrec_manager_verify_inactivity_probe (const struct ovsrec_manager *row)
 
void ovsrec_manager_verify_is_connected (const struct ovsrec_manager *row)
 
void ovsrec_manager_verify_max_backoff (const struct ovsrec_manager *row)
 
void ovsrec_manager_verify_other_config (const struct ovsrec_manager *row)
 
void ovsrec_manager_verify_status (const struct ovsrec_manager *row)
 
void ovsrec_manager_verify_target (const struct ovsrec_manager *row)
 
const struct ovsdb_datumovsrec_manager_get_connection_mode (const struct ovsrec_manager *row, enum ovsdb_atomic_type key_type OVS_UNUSED)
 
const struct ovsdb_datumovsrec_manager_get_external_ids (const struct ovsrec_manager *row, enum ovsdb_atomic_type key_type OVS_UNUSED, enum ovsdb_atomic_type value_type OVS_UNUSED)
 
const struct ovsdb_datumovsrec_manager_get_inactivity_probe (const struct ovsrec_manager *row, enum ovsdb_atomic_type key_type OVS_UNUSED)
 
const struct ovsdb_datumovsrec_manager_get_is_connected (const struct ovsrec_manager *row, enum ovsdb_atomic_type key_type OVS_UNUSED)
 
const struct ovsdb_datumovsrec_manager_get_max_backoff (const struct ovsrec_manager *row, enum ovsdb_atomic_type key_type OVS_UNUSED)
 
const struct ovsdb_datumovsrec_manager_get_other_config (const struct ovsrec_manager *row, enum ovsdb_atomic_type key_type OVS_UNUSED, enum ovsdb_atomic_type value_type OVS_UNUSED)
 
const struct ovsdb_datumovsrec_manager_get_status (const struct ovsrec_manager *row, enum ovsdb_atomic_type key_type OVS_UNUSED, enum ovsdb_atomic_type value_type OVS_UNUSED)
 
const struct ovsdb_datumovsrec_manager_get_target (const struct ovsrec_manager *row, enum ovsdb_atomic_type key_type OVS_UNUSED)
 
void ovsrec_manager_set_connection_mode (const struct ovsrec_manager *row, const char *connection_mode)
 
void ovsrec_manager_set_external_ids (const struct ovsrec_manager *row, const struct smap *external_ids)
 
void ovsrec_manager_set_inactivity_probe (const struct ovsrec_manager *row, const int64_t *inactivity_probe, size_t n_inactivity_probe)
 
void ovsrec_manager_set_is_connected (const struct ovsrec_manager *row, bool is_connected)
 
void ovsrec_manager_set_max_backoff (const struct ovsrec_manager *row, const int64_t *max_backoff, size_t n_max_backoff)
 
void ovsrec_manager_set_other_config (const struct ovsrec_manager *row, const struct smap *other_config)
 
void ovsrec_manager_set_status (const struct ovsrec_manager *row, const struct smap *status)
 
void ovsrec_manager_set_target (const struct ovsrec_manager *row, const char *target)
 
static void ovsrec_manager_columns_init (void)
 
static void ovsrec_mirror_parse_external_ids (struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
 
static void ovsrec_mirror_parse_name (struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
 
static void ovsrec_mirror_parse_output_port (struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
 
static void ovsrec_mirror_parse_output_vlan (struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
 
static void ovsrec_mirror_parse_select_all (struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
 
static void ovsrec_mirror_parse_select_dst_port (struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
 
static void ovsrec_mirror_parse_select_src_port (struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
 
static void ovsrec_mirror_parse_select_vlan (struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
 
static void ovsrec_mirror_parse_statistics (struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
 
static void ovsrec_mirror_unparse_external_ids (struct ovsdb_idl_row *row_)
 
static void ovsrec_mirror_unparse_name (struct ovsdb_idl_row *row OVS_UNUSED)
 
static void ovsrec_mirror_unparse_output_port (struct ovsdb_idl_row *row OVS_UNUSED)
 
static void ovsrec_mirror_unparse_output_vlan (struct ovsdb_idl_row *row_)
 
static void ovsrec_mirror_unparse_select_all (struct ovsdb_idl_row *row OVS_UNUSED)
 
static void ovsrec_mirror_unparse_select_dst_port (struct ovsdb_idl_row *row_)
 
static void ovsrec_mirror_unparse_select_src_port (struct ovsdb_idl_row *row_)
 
static void ovsrec_mirror_unparse_select_vlan (struct ovsdb_idl_row *row_)
 
static void ovsrec_mirror_unparse_statistics (struct ovsdb_idl_row *row_)
 
static void ovsrec_mirror_init__ (struct ovsdb_idl_row *row)
 
void ovsrec_mirror_init (struct ovsrec_mirror *row)
 
const struct ovsrec_mirrorovsrec_mirror_get_for_uuid (const struct ovsdb_idl *idl, const struct uuid *uuid)
 
const struct ovsrec_mirrorovsrec_mirror_first (const struct ovsdb_idl *idl)
 
const struct ovsrec_mirrorovsrec_mirror_next (const struct ovsrec_mirror *row)
 
void ovsrec_mirror_delete (const struct ovsrec_mirror *row)
 
struct ovsrec_mirrorovsrec_mirror_insert (struct ovsdb_idl_txn *txn)
 
void ovsrec_mirror_verify_external_ids (const struct ovsrec_mirror *row)
 
void ovsrec_mirror_verify_name (const struct ovsrec_mirror *row)
 
void ovsrec_mirror_verify_output_port (const struct ovsrec_mirror *row)
 
void ovsrec_mirror_verify_output_vlan (const struct ovsrec_mirror *row)
 
void ovsrec_mirror_verify_select_all (const struct ovsrec_mirror *row)
 
void ovsrec_mirror_verify_select_dst_port (const struct ovsrec_mirror *row)
 
void ovsrec_mirror_verify_select_src_port (const struct ovsrec_mirror *row)
 
void ovsrec_mirror_verify_select_vlan (const struct ovsrec_mirror *row)
 
void ovsrec_mirror_verify_statistics (const struct ovsrec_mirror *row)
 
const struct ovsdb_datumovsrec_mirror_get_external_ids (const struct ovsrec_mirror *row, enum ovsdb_atomic_type key_type OVS_UNUSED, enum ovsdb_atomic_type value_type OVS_UNUSED)
 
const struct ovsdb_datumovsrec_mirror_get_name (const struct ovsrec_mirror *row, enum ovsdb_atomic_type key_type OVS_UNUSED)
 
const struct ovsdb_datumovsrec_mirror_get_output_port (const struct ovsrec_mirror *row, enum ovsdb_atomic_type key_type OVS_UNUSED)
 
const struct ovsdb_datumovsrec_mirror_get_output_vlan (const struct ovsrec_mirror *row, enum ovsdb_atomic_type key_type OVS_UNUSED)
 
const struct ovsdb_datumovsrec_mirror_get_select_all (const struct ovsrec_mirror *row, enum ovsdb_atomic_type key_type OVS_UNUSED)
 
const struct ovsdb_datumovsrec_mirror_get_select_dst_port (const struct ovsrec_mirror *row, enum ovsdb_atomic_type key_type OVS_UNUSED)
 
const struct ovsdb_datumovsrec_mirror_get_select_src_port (const struct ovsrec_mirror *row, enum ovsdb_atomic_type key_type OVS_UNUSED)
 
const struct ovsdb_datumovsrec_mirror_get_select_vlan (const struct ovsrec_mirror *row, enum ovsdb_atomic_type key_type OVS_UNUSED)
 
const struct ovsdb_datumovsrec_mirror_get_statistics (const struct ovsrec_mirror *row, enum ovsdb_atomic_type key_type OVS_UNUSED, enum ovsdb_atomic_type value_type OVS_UNUSED)
 
void ovsrec_mirror_set_external_ids (const struct ovsrec_mirror *row, const struct smap *external_ids)
 
void ovsrec_mirror_set_name (const struct ovsrec_mirror *row, const char *name)
 
void ovsrec_mirror_set_output_port (const struct ovsrec_mirror *row, const struct ovsrec_port *output_port)
 
void ovsrec_mirror_set_output_vlan (const struct ovsrec_mirror *row, const int64_t *output_vlan, size_t n_output_vlan)
 
void ovsrec_mirror_set_select_all (const struct ovsrec_mirror *row, bool select_all)
 
void ovsrec_mirror_set_select_dst_port (const struct ovsrec_mirror *row, struct ovsrec_port **select_dst_port, size_t n_select_dst_port)
 
void ovsrec_mirror_set_select_src_port (const struct ovsrec_mirror *row, struct ovsrec_port **select_src_port, size_t n_select_src_port)
 
void ovsrec_mirror_set_select_vlan (const struct ovsrec_mirror *row, const int64_t *select_vlan, size_t n_select_vlan)
 
void ovsrec_mirror_set_statistics (const struct ovsrec_mirror *row, const char **key_statistics, const int64_t *value_statistics, size_t n_statistics)
 
static void ovsrec_mirror_columns_init (void)
 
static void ovsrec_netflow_parse_active_timeout (struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
 
static void ovsrec_netflow_parse_add_id_to_interface (struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
 
static void ovsrec_netflow_parse_engine_id (struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
 
static void ovsrec_netflow_parse_engine_type (struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
 
static void ovsrec_netflow_parse_external_ids (struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
 
static void ovsrec_netflow_parse_targets (struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
 
static void ovsrec_netflow_unparse_active_timeout (struct ovsdb_idl_row *row OVS_UNUSED)
 
static void ovsrec_netflow_unparse_add_id_to_interface (struct ovsdb_idl_row *row OVS_UNUSED)
 
static void ovsrec_netflow_unparse_engine_id (struct ovsdb_idl_row *row_)
 
static void ovsrec_netflow_unparse_engine_type (struct ovsdb_idl_row *row_)
 
static void ovsrec_netflow_unparse_external_ids (struct ovsdb_idl_row *row_)
 
static void ovsrec_netflow_unparse_targets (struct ovsdb_idl_row *row_)
 
static void ovsrec_netflow_init__ (struct ovsdb_idl_row *row)
 
void ovsrec_netflow_init (struct ovsrec_netflow *row)
 
const struct ovsrec_netflowovsrec_netflow_get_for_uuid (const struct ovsdb_idl *idl, const struct uuid *uuid)
 
const struct ovsrec_netflowovsrec_netflow_first (const struct ovsdb_idl *idl)
 
const struct ovsrec_netflowovsrec_netflow_next (const struct ovsrec_netflow *row)
 
void ovsrec_netflow_delete (const struct ovsrec_netflow *row)
 
struct ovsrec_netflowovsrec_netflow_insert (struct ovsdb_idl_txn *txn)
 
void ovsrec_netflow_verify_active_timeout (const struct ovsrec_netflow *row)
 
void ovsrec_netflow_verify_add_id_to_interface (const struct ovsrec_netflow *row)
 
void ovsrec_netflow_verify_engine_id (const struct ovsrec_netflow *row)
 
void ovsrec_netflow_verify_engine_type (const struct ovsrec_netflow *row)
 
void ovsrec_netflow_verify_external_ids (const struct ovsrec_netflow *row)
 
void ovsrec_netflow_verify_targets (const struct ovsrec_netflow *row)
 
const struct ovsdb_datumovsrec_netflow_get_active_timeout (const struct ovsrec_netflow *row, enum ovsdb_atomic_type key_type OVS_UNUSED)
 
const struct ovsdb_datumovsrec_netflow_get_add_id_to_interface (const struct ovsrec_netflow *row, enum ovsdb_atomic_type key_type OVS_UNUSED)
 
const struct ovsdb_datumovsrec_netflow_get_engine_id (const struct ovsrec_netflow *row, enum ovsdb_atomic_type key_type OVS_UNUSED)
 
const struct ovsdb_datumovsrec_netflow_get_engine_type (const struct ovsrec_netflow *row, enum ovsdb_atomic_type key_type OVS_UNUSED)
 
const struct ovsdb_datumovsrec_netflow_get_external_ids (const struct ovsrec_netflow *row, enum ovsdb_atomic_type key_type OVS_UNUSED, enum ovsdb_atomic_type value_type OVS_UNUSED)
 
const struct ovsdb_datumovsrec_netflow_get_targets (const struct ovsrec_netflow *row, enum ovsdb_atomic_type key_type OVS_UNUSED)
 
void ovsrec_netflow_set_active_timeout (const struct ovsrec_netflow *row, int64_t active_timeout)
 
void ovsrec_netflow_set_add_id_to_interface (const struct ovsrec_netflow *row, bool add_id_to_interface)
 
void ovsrec_netflow_set_engine_id (const struct ovsrec_netflow *row, const int64_t *engine_id, size_t n_engine_id)
 
void ovsrec_netflow_set_engine_type (const struct ovsrec_netflow *row, const int64_t *engine_type, size_t n_engine_type)
 
void ovsrec_netflow_set_external_ids (const struct ovsrec_netflow *row, const struct smap *external_ids)
 
void ovsrec_netflow_set_targets (const struct ovsrec_netflow *row, const char **targets, size_t n_targets)
 
static void ovsrec_netflow_columns_init (void)
 
static void ovsrec_open_vswitch_parse_bridges (struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
 
static void ovsrec_open_vswitch_parse_cur_cfg (struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
 
static void ovsrec_open_vswitch_parse_datapath_types (struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
 
static void ovsrec_open_vswitch_parse_db_version (struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
 
static void ovsrec_open_vswitch_parse_external_ids (struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
 
static void ovsrec_open_vswitch_parse_iface_types (struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
 
static void ovsrec_open_vswitch_parse_manager_options (struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
 
static void ovsrec_open_vswitch_parse_next_cfg (struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
 
static void ovsrec_open_vswitch_parse_other_config (struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
 
static void ovsrec_open_vswitch_parse_ovs_version (struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
 
static void ovsrec_open_vswitch_parse_ssl (struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
 
static void ovsrec_open_vswitch_parse_statistics (struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
 
static void ovsrec_open_vswitch_parse_system_type (struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
 
static void ovsrec_open_vswitch_parse_system_version (struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
 
static void ovsrec_open_vswitch_unparse_bridges (struct ovsdb_idl_row *row_)
 
static void ovsrec_open_vswitch_unparse_cur_cfg (struct ovsdb_idl_row *row OVS_UNUSED)
 
static void ovsrec_open_vswitch_unparse_datapath_types (struct ovsdb_idl_row *row_)
 
static void ovsrec_open_vswitch_unparse_db_version (struct ovsdb_idl_row *row OVS_UNUSED)
 
static void ovsrec_open_vswitch_unparse_external_ids (struct ovsdb_idl_row *row_)
 
static void ovsrec_open_vswitch_unparse_iface_types (struct ovsdb_idl_row *row_)
 
static void ovsrec_open_vswitch_unparse_manager_options (struct ovsdb_idl_row *row_)
 
static void ovsrec_open_vswitch_unparse_next_cfg (struct ovsdb_idl_row *row OVS_UNUSED)
 
static void ovsrec_open_vswitch_unparse_other_config (struct ovsdb_idl_row *row_)
 
static void ovsrec_open_vswitch_unparse_ovs_version (struct ovsdb_idl_row *row OVS_UNUSED)
 
static void ovsrec_open_vswitch_unparse_ssl (struct ovsdb_idl_row *row OVS_UNUSED)
 
static void ovsrec_open_vswitch_unparse_statistics (struct ovsdb_idl_row *row_)
 
static void ovsrec_open_vswitch_unparse_system_type (struct ovsdb_idl_row *row OVS_UNUSED)
 
static void ovsrec_open_vswitch_unparse_system_version (struct ovsdb_idl_row *row OVS_UNUSED)
 
static void ovsrec_open_vswitch_init__ (struct ovsdb_idl_row *row)
 
void ovsrec_open_vswitch_init (struct ovsrec_open_vswitch *row)
 
const struct ovsrec_open_vswitchovsrec_open_vswitch_get_for_uuid (const struct ovsdb_idl *idl, const struct uuid *uuid)
 
const struct ovsrec_open_vswitchovsrec_open_vswitch_first (const struct ovsdb_idl *idl)
 
const struct ovsrec_open_vswitchovsrec_open_vswitch_next (const struct ovsrec_open_vswitch *row)
 
void ovsrec_open_vswitch_delete (const struct ovsrec_open_vswitch *row)
 
struct ovsrec_open_vswitchovsrec_open_vswitch_insert (struct ovsdb_idl_txn *txn)
 
void ovsrec_open_vswitch_verify_bridges (const struct ovsrec_open_vswitch *row)
 
void ovsrec_open_vswitch_verify_cur_cfg (const struct ovsrec_open_vswitch *row)
 
void ovsrec_open_vswitch_verify_datapath_types (const struct ovsrec_open_vswitch *row)
 
void ovsrec_open_vswitch_verify_db_version (const struct ovsrec_open_vswitch *row)
 
void ovsrec_open_vswitch_verify_external_ids (const struct ovsrec_open_vswitch *row)
 
void ovsrec_open_vswitch_verify_iface_types (const struct ovsrec_open_vswitch *row)
 
void ovsrec_open_vswitch_verify_manager_options (const struct ovsrec_open_vswitch *row)
 
void ovsrec_open_vswitch_verify_next_cfg (const struct ovsrec_open_vswitch *row)
 
void ovsrec_open_vswitch_verify_other_config (const struct ovsrec_open_vswitch *row)
 
void ovsrec_open_vswitch_verify_ovs_version (const struct ovsrec_open_vswitch *row)
 
void ovsrec_open_vswitch_verify_ssl (const struct ovsrec_open_vswitch *row)
 
void ovsrec_open_vswitch_verify_statistics (const struct ovsrec_open_vswitch *row)
 
void ovsrec_open_vswitch_verify_system_type (const struct ovsrec_open_vswitch *row)
 
void ovsrec_open_vswitch_verify_system_version (const struct ovsrec_open_vswitch *row)
 
const struct ovsdb_datumovsrec_open_vswitch_get_bridges (const struct ovsrec_open_vswitch *row, enum ovsdb_atomic_type key_type OVS_UNUSED)
 
const struct ovsdb_datumovsrec_open_vswitch_get_cur_cfg (const struct ovsrec_open_vswitch *row, enum ovsdb_atomic_type key_type OVS_UNUSED)
 
const struct ovsdb_datumovsrec_open_vswitch_get_datapath_types (const struct ovsrec_open_vswitch *row, enum ovsdb_atomic_type key_type OVS_UNUSED)
 
const struct ovsdb_datumovsrec_open_vswitch_get_db_version (const struct ovsrec_open_vswitch *row, enum ovsdb_atomic_type key_type OVS_UNUSED)
 
const struct ovsdb_datumovsrec_open_vswitch_get_external_ids (const struct ovsrec_open_vswitch *row, enum ovsdb_atomic_type key_type OVS_UNUSED, enum ovsdb_atomic_type value_type OVS_UNUSED)
 
const struct ovsdb_datumovsrec_open_vswitch_get_iface_types (const struct ovsrec_open_vswitch *row, enum ovsdb_atomic_type key_type OVS_UNUSED)
 
const struct ovsdb_datumovsrec_open_vswitch_get_manager_options (const struct ovsrec_open_vswitch *row, enum ovsdb_atomic_type key_type OVS_UNUSED)
 
const struct ovsdb_datumovsrec_open_vswitch_get_next_cfg (const struct ovsrec_open_vswitch *row, enum ovsdb_atomic_type key_type OVS_UNUSED)
 
const struct ovsdb_datumovsrec_open_vswitch_get_other_config (const struct ovsrec_open_vswitch *row, enum ovsdb_atomic_type key_type OVS_UNUSED, enum ovsdb_atomic_type value_type OVS_UNUSED)
 
const struct ovsdb_datumovsrec_open_vswitch_get_ovs_version (const struct ovsrec_open_vswitch *row, enum ovsdb_atomic_type key_type OVS_UNUSED)
 
const struct ovsdb_datumovsrec_open_vswitch_get_ssl (const struct ovsrec_open_vswitch *row, enum ovsdb_atomic_type key_type OVS_UNUSED)
 
const struct ovsdb_datumovsrec_open_vswitch_get_statistics (const struct ovsrec_open_vswitch *row, enum ovsdb_atomic_type key_type OVS_UNUSED, enum ovsdb_atomic_type value_type OVS_UNUSED)
 
const struct ovsdb_datumovsrec_open_vswitch_get_system_type (const struct ovsrec_open_vswitch *row, enum ovsdb_atomic_type key_type OVS_UNUSED)
 
const struct ovsdb_datumovsrec_open_vswitch_get_system_version (const struct ovsrec_open_vswitch *row, enum ovsdb_atomic_type key_type OVS_UNUSED)
 
void ovsrec_open_vswitch_set_bridges (const struct ovsrec_open_vswitch *row, struct ovsrec_bridge **bridges, size_t n_bridges)
 
void ovsrec_open_vswitch_set_cur_cfg (const struct ovsrec_open_vswitch *row, int64_t cur_cfg)
 
void ovsrec_open_vswitch_set_datapath_types (const struct ovsrec_open_vswitch *row, const char **datapath_types, size_t n_datapath_types)
 
void ovsrec_open_vswitch_set_db_version (const struct ovsrec_open_vswitch *row, const char *db_version)
 
void ovsrec_open_vswitch_set_external_ids (const struct ovsrec_open_vswitch *row, const struct smap *external_ids)
 
void ovsrec_open_vswitch_set_iface_types (const struct ovsrec_open_vswitch *row, const char **iface_types, size_t n_iface_types)
 
void ovsrec_open_vswitch_set_manager_options (const struct ovsrec_open_vswitch *row, struct ovsrec_manager **manager_options, size_t n_manager_options)
 
void ovsrec_open_vswitch_set_next_cfg (const struct ovsrec_open_vswitch *row, int64_t next_cfg)
 
void ovsrec_open_vswitch_set_other_config (const struct ovsrec_open_vswitch *row, const struct smap *other_config)
 
void ovsrec_open_vswitch_set_ovs_version (const struct ovsrec_open_vswitch *row, const char *ovs_version)
 
void ovsrec_open_vswitch_set_ssl (const struct ovsrec_open_vswitch *row, const struct ovsrec_ssl *ssl)
 
void ovsrec_open_vswitch_set_statistics (const struct ovsrec_open_vswitch *row, const struct smap *statistics)
 
void ovsrec_open_vswitch_set_system_type (const struct ovsrec_open_vswitch *row, const char *system_type)
 
void ovsrec_open_vswitch_set_system_version (const struct ovsrec_open_vswitch *row, const char *system_version)
 
static void ovsrec_open_vswitch_columns_init (void)
 
static void ovsrec_port_parse_bond_active_slave (struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
 
static void ovsrec_port_parse_bond_downdelay (struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
 
static void ovsrec_port_parse_bond_fake_iface (struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
 
static void ovsrec_port_parse_bond_mode (struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
 
static void ovsrec_port_parse_bond_updelay (struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
 
static void ovsrec_port_parse_external_ids (struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
 
static void ovsrec_port_parse_fake_bridge (struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
 
static void ovsrec_port_parse_interfaces (struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
 
static void ovsrec_port_parse_lacp (struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
 
static void ovsrec_port_parse_mac (struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
 
static void ovsrec_port_parse_name (struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
 
static void ovsrec_port_parse_other_config (struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
 
static void ovsrec_port_parse_qos (struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
 
static void ovsrec_port_parse_rstp_statistics (struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
 
static void ovsrec_port_parse_rstp_status (struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
 
static void ovsrec_port_parse_statistics (struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
 
static void ovsrec_port_parse_status (struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
 
static void ovsrec_port_parse_tag (struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
 
static void ovsrec_port_parse_trunks (struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
 
static void ovsrec_port_parse_vlan_mode (struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
 
static void ovsrec_port_unparse_bond_active_slave (struct ovsdb_idl_row *row OVS_UNUSED)
 
static void ovsrec_port_unparse_bond_downdelay (struct ovsdb_idl_row *row OVS_UNUSED)
 
static void ovsrec_port_unparse_bond_fake_iface (struct ovsdb_idl_row *row OVS_UNUSED)
 
static void ovsrec_port_unparse_bond_mode (struct ovsdb_idl_row *row OVS_UNUSED)
 
static void ovsrec_port_unparse_bond_updelay (struct ovsdb_idl_row *row OVS_UNUSED)
 
static void ovsrec_port_unparse_external_ids (struct ovsdb_idl_row *row_)
 
static void ovsrec_port_unparse_fake_bridge (struct ovsdb_idl_row *row OVS_UNUSED)
 
static void ovsrec_port_unparse_interfaces (struct ovsdb_idl_row *row_)
 
static void ovsrec_port_unparse_lacp (struct ovsdb_idl_row *row OVS_UNUSED)
 
static void ovsrec_port_unparse_mac (struct ovsdb_idl_row *row OVS_UNUSED)
 
static void ovsrec_port_unparse_name (struct ovsdb_idl_row *row OVS_UNUSED)
 
static void ovsrec_port_unparse_other_config (struct ovsdb_idl_row *row_)
 
static void ovsrec_port_unparse_qos (struct ovsdb_idl_row *row OVS_UNUSED)
 
static void ovsrec_port_unparse_rstp_statistics (struct ovsdb_idl_row *row_)
 
static void ovsrec_port_unparse_rstp_status (struct ovsdb_idl_row *row_)
 
static void ovsrec_port_unparse_statistics (struct ovsdb_idl_row *row_)
 
static void ovsrec_port_unparse_status (struct ovsdb_idl_row *row_)
 
static void ovsrec_port_unparse_tag (struct ovsdb_idl_row *row_)
 
static void ovsrec_port_unparse_trunks (struct ovsdb_idl_row *row_)
 
static void ovsrec_port_unparse_vlan_mode (struct ovsdb_idl_row *row OVS_UNUSED)
 
static void ovsrec_port_init__ (struct ovsdb_idl_row *row)
 
void ovsrec_port_init (struct ovsrec_port *row)
 
const struct ovsrec_portovsrec_port_get_for_uuid (const struct ovsdb_idl *idl, const struct uuid *uuid)
 
const struct ovsrec_portovsrec_port_first (const struct ovsdb_idl *idl)
 
const struct ovsrec_portovsrec_port_next (const struct ovsrec_port *row)
 
void ovsrec_port_delete (const struct ovsrec_port *row)
 
struct ovsrec_portovsrec_port_insert (struct ovsdb_idl_txn *txn)
 
void ovsrec_port_verify_bond_active_slave (const struct ovsrec_port *row)
 
void ovsrec_port_verify_bond_downdelay (const struct ovsrec_port *row)
 
void ovsrec_port_verify_bond_fake_iface (const struct ovsrec_port *row)
 
void ovsrec_port_verify_bond_mode (const struct ovsrec_port *row)
 
void ovsrec_port_verify_bond_updelay (const struct ovsrec_port *row)
 
void ovsrec_port_verify_external_ids (const struct ovsrec_port *row)
 
void ovsrec_port_verify_fake_bridge (const struct ovsrec_port *row)
 
void ovsrec_port_verify_interfaces (const struct ovsrec_port *row)
 
void ovsrec_port_verify_lacp (const struct ovsrec_port *row)
 
void ovsrec_port_verify_mac (const struct ovsrec_port *row)
 
void ovsrec_port_verify_name (const struct ovsrec_port *row)
 
void ovsrec_port_verify_other_config (const struct ovsrec_port *row)
 
void ovsrec_port_verify_qos (const struct ovsrec_port *row)
 
void ovsrec_port_verify_rstp_statistics (const struct ovsrec_port *row)
 
void ovsrec_port_verify_rstp_status (const struct ovsrec_port *row)
 
void ovsrec_port_verify_statistics (const struct ovsrec_port *row)
 
void ovsrec_port_verify_status (const struct ovsrec_port *row)
 
void ovsrec_port_verify_tag (const struct ovsrec_port *row)
 
void ovsrec_port_verify_trunks (const struct ovsrec_port *row)
 
void ovsrec_port_verify_vlan_mode (const struct ovsrec_port *row)
 
const struct ovsdb_datumovsrec_port_get_bond_active_slave (const struct ovsrec_port *row, enum ovsdb_atomic_type key_type OVS_UNUSED)
 
const struct ovsdb_datumovsrec_port_get_bond_downdelay (const struct ovsrec_port *row, enum ovsdb_atomic_type key_type OVS_UNUSED)
 
const struct ovsdb_datumovsrec_port_get_bond_fake_iface (const struct ovsrec_port *row, enum ovsdb_atomic_type key_type OVS_UNUSED)
 
const struct ovsdb_datumovsrec_port_get_bond_mode (const struct ovsrec_port *row, enum ovsdb_atomic_type key_type OVS_UNUSED)
 
const struct ovsdb_datumovsrec_port_get_bond_updelay (const struct ovsrec_port *row, enum ovsdb_atomic_type key_type OVS_UNUSED)
 
const struct ovsdb_datumovsrec_port_get_external_ids (const struct ovsrec_port *row, enum ovsdb_atomic_type key_type OVS_UNUSED, enum ovsdb_atomic_type value_type OVS_UNUSED)
 
const struct ovsdb_datumovsrec_port_get_fake_bridge (const struct ovsrec_port *row, enum ovsdb_atomic_type key_type OVS_UNUSED)
 
const struct ovsdb_datumovsrec_port_get_interfaces (const struct ovsrec_port *row, enum ovsdb_atomic_type key_type OVS_UNUSED)
 
const struct ovsdb_datumovsrec_port_get_lacp (const struct ovsrec_port *row, enum ovsdb_atomic_type key_type OVS_UNUSED)
 
const struct ovsdb_datumovsrec_port_get_mac (const struct ovsrec_port *row, enum ovsdb_atomic_type key_type OVS_UNUSED)
 
const struct ovsdb_datumovsrec_port_get_name (const struct ovsrec_port *row, enum ovsdb_atomic_type key_type OVS_UNUSED)
 
const struct ovsdb_datumovsrec_port_get_other_config (const struct ovsrec_port *row, enum ovsdb_atomic_type key_type OVS_UNUSED, enum ovsdb_atomic_type value_type OVS_UNUSED)
 
const struct ovsdb_datumovsrec_port_get_qos (const struct ovsrec_port *row, enum ovsdb_atomic_type key_type OVS_UNUSED)
 
const struct ovsdb_datumovsrec_port_get_rstp_statistics (const struct ovsrec_port *row, enum ovsdb_atomic_type key_type OVS_UNUSED, enum ovsdb_atomic_type value_type OVS_UNUSED)
 
const struct ovsdb_datumovsrec_port_get_rstp_status (const struct ovsrec_port *row, enum ovsdb_atomic_type key_type OVS_UNUSED, enum ovsdb_atomic_type value_type OVS_UNUSED)
 
const struct ovsdb_datumovsrec_port_get_statistics (const struct ovsrec_port *row, enum ovsdb_atomic_type key_type OVS_UNUSED, enum ovsdb_atomic_type value_type OVS_UNUSED)
 
const struct ovsdb_datumovsrec_port_get_status (const struct ovsrec_port *row, enum ovsdb_atomic_type key_type OVS_UNUSED, enum ovsdb_atomic_type value_type OVS_UNUSED)
 
const struct ovsdb_datumovsrec_port_get_tag (const struct ovsrec_port *row, enum ovsdb_atomic_type key_type OVS_UNUSED)
 
const struct ovsdb_datumovsrec_port_get_trunks (const struct ovsrec_port *row, enum ovsdb_atomic_type key_type OVS_UNUSED)
 
const struct ovsdb_datumovsrec_port_get_vlan_mode (const struct ovsrec_port *row, enum ovsdb_atomic_type key_type OVS_UNUSED)
 
void ovsrec_port_set_bond_active_slave (const struct ovsrec_port *row, const char *bond_active_slave)
 
void ovsrec_port_set_bond_downdelay (const struct ovsrec_port *row, int64_t bond_downdelay)
 
void ovsrec_port_set_bond_fake_iface (const struct ovsrec_port *row, bool bond_fake_iface)
 
void ovsrec_port_set_bond_mode (const struct ovsrec_port *row, const char *bond_mode)
 
void ovsrec_port_set_bond_updelay (const struct ovsrec_port *row, int64_t bond_updelay)
 
void ovsrec_port_set_external_ids (const struct ovsrec_port *row, const struct smap *external_ids)
 
void ovsrec_port_set_fake_bridge (const struct ovsrec_port *row, bool fake_bridge)
 
void ovsrec_port_set_interfaces (const struct ovsrec_port *row, struct ovsrec_interface **interfaces, size_t n_interfaces)
 
void ovsrec_port_set_lacp (const struct ovsrec_port *row, const char *lacp)
 
void ovsrec_port_set_mac (const struct ovsrec_port *row, const char *mac)
 
void ovsrec_port_set_name (const struct ovsrec_port *row, const char *name)
 
void ovsrec_port_set_other_config (const struct ovsrec_port *row, const struct smap *other_config)
 
void ovsrec_port_set_qos (const struct ovsrec_port *row, const struct ovsrec_qos *qos)
 
void ovsrec_port_set_rstp_statistics (const struct ovsrec_port *row, const char **key_rstp_statistics, const int64_t *value_rstp_statistics, size_t n_rstp_statistics)
 
void ovsrec_port_set_rstp_status (const struct ovsrec_port *row, const struct smap *rstp_status)
 
void ovsrec_port_set_statistics (const struct ovsrec_port *row, const char **key_statistics, const int64_t *value_statistics, size_t n_statistics)
 
void ovsrec_port_set_status (const struct ovsrec_port *row, const struct smap *status)
 
void ovsrec_port_set_tag (const struct ovsrec_port *row, const int64_t *tag, size_t n_tag)
 
void ovsrec_port_set_trunks (const struct ovsrec_port *row, const int64_t *trunks, size_t n_trunks)
 
void ovsrec_port_set_vlan_mode (const struct ovsrec_port *row, const char *vlan_mode)
 
static void ovsrec_port_columns_init (void)
 
static void ovsrec_qos_parse_external_ids (struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
 
static void ovsrec_qos_parse_other_config (struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
 
static void ovsrec_qos_parse_queues (struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
 
static void ovsrec_qos_parse_type (struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
 
static void ovsrec_qos_unparse_external_ids (struct ovsdb_idl_row *row_)
 
static void ovsrec_qos_unparse_other_config (struct ovsdb_idl_row *row_)
 
static void ovsrec_qos_unparse_queues (struct ovsdb_idl_row *row_)
 
static void ovsrec_qos_unparse_type (struct ovsdb_idl_row *row OVS_UNUSED)
 
static void ovsrec_qos_init__ (struct ovsdb_idl_row *row)
 
void ovsrec_qos_init (struct ovsrec_qos *row)
 
const struct ovsrec_qosovsrec_qos_get_for_uuid (const struct ovsdb_idl *idl, const struct uuid *uuid)
 
const struct ovsrec_qosovsrec_qos_first (const struct ovsdb_idl *idl)
 
const struct ovsrec_qosovsrec_qos_next (const struct ovsrec_qos *row)
 
void ovsrec_qos_delete (const struct ovsrec_qos *row)
 
struct ovsrec_qosovsrec_qos_insert (struct ovsdb_idl_txn *txn)
 
void ovsrec_qos_verify_external_ids (const struct ovsrec_qos *row)
 
void ovsrec_qos_verify_other_config (const struct ovsrec_qos *row)
 
void ovsrec_qos_verify_queues (const struct ovsrec_qos *row)
 
void ovsrec_qos_verify_type (const struct ovsrec_qos *row)
 
const struct ovsdb_datumovsrec_qos_get_external_ids (const struct ovsrec_qos *row, enum ovsdb_atomic_type key_type OVS_UNUSED, enum ovsdb_atomic_type value_type OVS_UNUSED)
 
const struct ovsdb_datumovsrec_qos_get_other_config (const struct ovsrec_qos *row, enum ovsdb_atomic_type key_type OVS_UNUSED, enum ovsdb_atomic_type value_type OVS_UNUSED)
 
const struct ovsdb_datumovsrec_qos_get_queues (const struct ovsrec_qos *row, enum ovsdb_atomic_type key_type OVS_UNUSED, enum ovsdb_atomic_type value_type OVS_UNUSED)
 
const struct ovsdb_datumovsrec_qos_get_type (const struct ovsrec_qos *row, enum ovsdb_atomic_type key_type OVS_UNUSED)
 
void ovsrec_qos_set_external_ids (const struct ovsrec_qos *row, const struct smap *external_ids)
 
void ovsrec_qos_set_other_config (const struct ovsrec_qos *row, const struct smap *other_config)
 
void ovsrec_qos_set_queues (const struct ovsrec_qos *row, const int64_t *key_queues, struct ovsrec_queue **value_queues, size_t n_queues)
 
void ovsrec_qos_set_type (const struct ovsrec_qos *row, const char *type)
 
static void ovsrec_qos_columns_init (void)
 
static void ovsrec_queue_parse_dscp (struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
 
static void ovsrec_queue_parse_external_ids (struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
 
static void ovsrec_queue_parse_other_config (struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
 
static void ovsrec_queue_unparse_dscp (struct ovsdb_idl_row *row_)
 
static void ovsrec_queue_unparse_external_ids (struct ovsdb_idl_row *row_)
 
static void ovsrec_queue_unparse_other_config (struct ovsdb_idl_row *row_)
 
static void ovsrec_queue_init__ (struct ovsdb_idl_row *row)
 
void ovsrec_queue_init (struct ovsrec_queue *row)
 
const struct ovsrec_queueovsrec_queue_get_for_uuid (const struct ovsdb_idl *idl, const struct uuid *uuid)
 
const struct ovsrec_queueovsrec_queue_first (const struct ovsdb_idl *idl)
 
const struct ovsrec_queueovsrec_queue_next (const struct ovsrec_queue *row)
 
void ovsrec_queue_delete (const struct ovsrec_queue *row)
 
struct ovsrec_queueovsrec_queue_insert (struct ovsdb_idl_txn *txn)
 
void ovsrec_queue_verify_dscp (const struct ovsrec_queue *row)
 
void ovsrec_queue_verify_external_ids (const struct ovsrec_queue *row)
 
void ovsrec_queue_verify_other_config (const struct ovsrec_queue *row)
 
const struct ovsdb_datumovsrec_queue_get_dscp (const struct ovsrec_queue *row, enum ovsdb_atomic_type key_type OVS_UNUSED)
 
const struct ovsdb_datumovsrec_queue_get_external_ids (const struct ovsrec_queue *row, enum ovsdb_atomic_type key_type OVS_UNUSED, enum ovsdb_atomic_type value_type OVS_UNUSED)
 
const struct ovsdb_datumovsrec_queue_get_other_config (const struct ovsrec_queue *row, enum ovsdb_atomic_type key_type OVS_UNUSED, enum ovsdb_atomic_type value_type OVS_UNUSED)
 
void ovsrec_queue_set_dscp (const struct ovsrec_queue *row, const int64_t *dscp, size_t n_dscp)
 
void ovsrec_queue_set_external_ids (const struct ovsrec_queue *row, const struct smap *external_ids)
 
void ovsrec_queue_set_other_config (const struct ovsrec_queue *row, const struct smap *other_config)
 
static void ovsrec_queue_columns_init (void)
 
static void ovsrec_ssl_parse_bootstrap_ca_cert (struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
 
static void ovsrec_ssl_parse_ca_cert (struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
 
static void ovsrec_ssl_parse_certificate (struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
 
static void ovsrec_ssl_parse_external_ids (struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
 
static void ovsrec_ssl_parse_private_key (struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
 
static void ovsrec_ssl_unparse_bootstrap_ca_cert (struct ovsdb_idl_row *row OVS_UNUSED)
 
static void ovsrec_ssl_unparse_ca_cert (struct ovsdb_idl_row *row OVS_UNUSED)
 
static void ovsrec_ssl_unparse_certificate (struct ovsdb_idl_row *row OVS_UNUSED)
 
static void ovsrec_ssl_unparse_external_ids (struct ovsdb_idl_row *row_)
 
static void ovsrec_ssl_unparse_private_key (struct ovsdb_idl_row *row OVS_UNUSED)
 
static void ovsrec_ssl_init__ (struct ovsdb_idl_row *row)
 
void ovsrec_ssl_init (struct ovsrec_ssl *row)
 
const struct ovsrec_sslovsrec_ssl_get_for_uuid (const struct ovsdb_idl *idl, const struct uuid *uuid)
 
const struct ovsrec_sslovsrec_ssl_first (const struct ovsdb_idl *idl)
 
const struct ovsrec_sslovsrec_ssl_next (const struct ovsrec_ssl *row)
 
void ovsrec_ssl_delete (const struct ovsrec_ssl *row)
 
struct ovsrec_sslovsrec_ssl_insert (struct ovsdb_idl_txn *txn)
 
void ovsrec_ssl_verify_bootstrap_ca_cert (const struct ovsrec_ssl *row)
 
void ovsrec_ssl_verify_ca_cert (const struct ovsrec_ssl *row)
 
void ovsrec_ssl_verify_certificate (const struct ovsrec_ssl *row)
 
void ovsrec_ssl_verify_external_ids (const struct ovsrec_ssl *row)
 
void ovsrec_ssl_verify_private_key (const struct ovsrec_ssl *row)
 
const struct ovsdb_datumovsrec_ssl_get_bootstrap_ca_cert (const struct ovsrec_ssl *row, enum ovsdb_atomic_type key_type OVS_UNUSED)
 
const struct ovsdb_datumovsrec_ssl_get_ca_cert (const struct ovsrec_ssl *row, enum ovsdb_atomic_type key_type OVS_UNUSED)
 
const struct ovsdb_datumovsrec_ssl_get_certificate (const struct ovsrec_ssl *row, enum ovsdb_atomic_type key_type OVS_UNUSED)
 
const struct ovsdb_datumovsrec_ssl_get_external_ids (const struct ovsrec_ssl *row, enum ovsdb_atomic_type key_type OVS_UNUSED, enum ovsdb_atomic_type value_type OVS_UNUSED)
 
const struct ovsdb_datumovsrec_ssl_get_private_key (const struct ovsrec_ssl *row, enum ovsdb_atomic_type key_type OVS_UNUSED)
 
void ovsrec_ssl_set_bootstrap_ca_cert (const struct ovsrec_ssl *row, bool bootstrap_ca_cert)
 
void ovsrec_ssl_set_ca_cert (const struct ovsrec_ssl *row, const char *ca_cert)
 
void ovsrec_ssl_set_certificate (const struct ovsrec_ssl *row, const char *certificate)
 
void ovsrec_ssl_set_external_ids (const struct ovsrec_ssl *row, const struct smap *external_ids)
 
void ovsrec_ssl_set_private_key (const struct ovsrec_ssl *row, const char *private_key)
 
static void ovsrec_ssl_columns_init (void)
 
static void ovsrec_sflow_parse_agent (struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
 
static void ovsrec_sflow_parse_external_ids (struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
 
static void ovsrec_sflow_parse_header (struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
 
static void ovsrec_sflow_parse_polling (struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
 
static void ovsrec_sflow_parse_sampling (struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
 
static void ovsrec_sflow_parse_targets (struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
 
static void ovsrec_sflow_unparse_agent (struct ovsdb_idl_row *row OVS_UNUSED)
 
static void ovsrec_sflow_unparse_external_ids (struct ovsdb_idl_row *row_)
 
static void ovsrec_sflow_unparse_header (struct ovsdb_idl_row *row_)
 
static void ovsrec_sflow_unparse_polling (struct ovsdb_idl_row *row_)
 
static void ovsrec_sflow_unparse_sampling (struct ovsdb_idl_row *row_)
 
static void ovsrec_sflow_unparse_targets (struct ovsdb_idl_row *row_)
 
static void ovsrec_sflow_init__ (struct ovsdb_idl_row *row)
 
void ovsrec_sflow_init (struct ovsrec_sflow *row)
 
const struct ovsrec_sflowovsrec_sflow_get_for_uuid (const struct ovsdb_idl *idl, const struct uuid *uuid)
 
const struct ovsrec_sflowovsrec_sflow_first (const struct ovsdb_idl *idl)
 
const struct ovsrec_sflowovsrec_sflow_next (const struct ovsrec_sflow *row)
 
void ovsrec_sflow_delete (const struct ovsrec_sflow *row)
 
struct ovsrec_sflowovsrec_sflow_insert (struct ovsdb_idl_txn *txn)
 
void ovsrec_sflow_verify_agent (const struct ovsrec_sflow *row)
 
void ovsrec_sflow_verify_external_ids (const struct ovsrec_sflow *row)
 
void ovsrec_sflow_verify_header (const struct ovsrec_sflow *row)
 
void ovsrec_sflow_verify_polling (const struct ovsrec_sflow *row)
 
void ovsrec_sflow_verify_sampling (const struct ovsrec_sflow *row)
 
void ovsrec_sflow_verify_targets (const struct ovsrec_sflow *row)
 
const struct ovsdb_datumovsrec_sflow_get_agent (const struct ovsrec_sflow *row, enum ovsdb_atomic_type key_type OVS_UNUSED)
 
const struct ovsdb_datumovsrec_sflow_get_external_ids (const struct ovsrec_sflow *row, enum ovsdb_atomic_type key_type OVS_UNUSED, enum ovsdb_atomic_type value_type OVS_UNUSED)
 
const struct ovsdb_datumovsrec_sflow_get_header (const struct ovsrec_sflow *row, enum ovsdb_atomic_type key_type OVS_UNUSED)
 
const struct ovsdb_datumovsrec_sflow_get_polling (const struct ovsrec_sflow *row, enum ovsdb_atomic_type key_type OVS_UNUSED)
 
const struct ovsdb_datumovsrec_sflow_get_sampling (const struct ovsrec_sflow *row, enum ovsdb_atomic_type key_type OVS_UNUSED)
 
const struct ovsdb_datumovsrec_sflow_get_targets (const struct ovsrec_sflow *row, enum ovsdb_atomic_type key_type OVS_UNUSED)
 
void ovsrec_sflow_set_agent (const struct ovsrec_sflow *row, const char *agent)
 
void ovsrec_sflow_set_external_ids (const struct ovsrec_sflow *row, const struct smap *external_ids)
 
void ovsrec_sflow_set_header (const struct ovsrec_sflow *row, const int64_t *header, size_t n_header)
 
void ovsrec_sflow_set_polling (const struct ovsrec_sflow *row, const int64_t *polling, size_t n_polling)
 
void ovsrec_sflow_set_sampling (const struct ovsrec_sflow *row, const int64_t *sampling, size_t n_sampling)
 
void ovsrec_sflow_set_targets (const struct ovsrec_sflow *row, const char **targets, size_t n_targets)
 
static void ovsrec_sflow_columns_init (void)
 
void ovsrec_init (void)
 
const char * ovsrec_get_db_version (void)
 

Variables

static bool inited
 
struct ovsdb_idl_column ovsrec_autoattach_columns [OVSREC_AUTOATTACH_N_COLUMNS]
 
struct ovsdb_idl_column ovsrec_bridge_columns [OVSREC_BRIDGE_N_COLUMNS]
 
struct ovsdb_idl_column ovsrec_controller_columns [OVSREC_CONTROLLER_N_COLUMNS]
 
struct ovsdb_idl_column ovsrec_flow_sample_collector_set_columns [OVSREC_FLOW_SAMPLE_COLLECTOR_SET_N_COLUMNS]
 
struct ovsdb_idl_column ovsrec_flow_table_columns [OVSREC_FLOW_TABLE_N_COLUMNS]
 
struct ovsdb_idl_column ovsrec_ipfix_columns [OVSREC_IPFIX_N_COLUMNS]
 
struct ovsdb_idl_column ovsrec_interface_columns [OVSREC_INTERFACE_N_COLUMNS]
 
struct ovsdb_idl_column ovsrec_manager_columns [OVSREC_MANAGER_N_COLUMNS]
 
struct ovsdb_idl_column ovsrec_mirror_columns [OVSREC_MIRROR_N_COLUMNS]
 
struct ovsdb_idl_column ovsrec_netflow_columns [OVSREC_NETFLOW_N_COLUMNS]
 
struct ovsdb_idl_column ovsrec_open_vswitch_columns [OVSREC_OPEN_VSWITCH_N_COLUMNS]
 
struct ovsdb_idl_column ovsrec_port_columns [OVSREC_PORT_N_COLUMNS]
 
struct ovsdb_idl_column ovsrec_qos_columns [OVSREC_QOS_N_COLUMNS]
 
struct ovsdb_idl_column ovsrec_queue_columns [OVSREC_QUEUE_N_COLUMNS]
 
struct ovsdb_idl_column ovsrec_ssl_columns [OVSREC_SSL_N_COLUMNS]
 
struct ovsdb_idl_column ovsrec_sflow_columns [OVSREC_SFLOW_N_COLUMNS]
 
struct ovsdb_idl_table_class ovsrec_table_classes [OVSREC_N_TABLES]
 
struct ovsdb_idl_class ovsrec_idl_class
 

Enumeration Type Documentation

anonymous enum
Enumerator
sizeof_bool 
15 { sizeof_bool = sizeof(bool) };
_Bool bool
Definition: types.h:12
Definition: vswitch-idl.c:15

Function Documentation

static struct ovsrec_autoattach* ovsrec_autoattach_cast ( const struct ovsdb_idl_row row)
static
23 {
24  return row ? CONTAINER_OF(row, struct ovsrec_autoattach, header_) : NULL;
25 }
#define CONTAINER_OF(POINTER, STRUCT, MEMBER)
Definition: util.h:207
Definition: vswitch-idl.h:15
static void ovsrec_autoattach_columns_init ( void  )
static
497 {
498  struct ovsdb_idl_column *c;
499 
500  /* Initialize ovsrec_autoattach_col_mappings. */
502  c->name = "mappings";
504  c->type.key.u.integer.min = INT64_C(0);
505  c->type.key.u.integer.max = INT64_C(16777215);
507  c->type.value.u.integer.min = INT64_C(0);
508  c->type.value.u.integer.max = INT64_C(4095);
509  c->type.n_min = 0;
510  c->type.n_max = UINT_MAX;
511  c->mutable = true;
514 
515  /* Initialize ovsrec_autoattach_col_system_description. */
517  c->name = "system_description";
519  c->type.key.u.string.minLen = 0;
521  c->type.n_min = 1;
522  c->type.n_max = 1;
523  c->mutable = true;
526 
527  /* Initialize ovsrec_autoattach_col_system_name. */
529  c->name = "system_name";
531  c->type.key.u.string.minLen = 0;
533  c->type.n_min = 1;
534  c->type.n_max = 1;
535  c->mutable = true;
538 }
void(* unparse)(struct ovsdb_idl_row *)
Definition: ovsdb-idl-provider.h:46
static void ovsrec_autoattach_parse_system_description(struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
Definition: vswitch-idl.c:141
Definition: ovsdb-idl-provider.h:41
struct ovsdb_base_type::@145::ovsdb_string_constraints string
void ovsdb_base_type_init(struct ovsdb_base_type *base, enum ovsdb_atomic_type type)
Definition: ovsdb-types.c:117
union ovsdb_base_type::@145 u
#define ovsrec_autoattach_col_system_description
Definition: vswitch-idl.h:39
unsigned int n_min
Definition: ovsdb-types.h:136
struct ovsdb_base_type key
Definition: ovsdb-types.h:134
void(* parse)(struct ovsdb_idl_row *, const struct ovsdb_datum *)
Definition: ovsdb-idl-provider.h:45
unsigned int n_max
Definition: ovsdb-types.h:137
static void ovsrec_autoattach_parse_system_name(struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
Definition: vswitch-idl.c:154
Definition: ovsdb-types.h:33
static void ovsrec_autoattach_unparse_mappings(struct ovsdb_idl_row *row_)
Definition: vswitch-idl.c:167
struct ovsdb_base_type value
Definition: ovsdb-types.h:135
char * name
Definition: ovsdb-idl-provider.h:42
Definition: ovsdb-types.h:30
static void ovsrec_autoattach_parse_mappings(struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
Definition: vswitch-idl.c:120
static void ovsrec_autoattach_unparse_system_name(struct ovsdb_idl_row *row OVS_UNUSED)
Definition: vswitch-idl.c:183
struct ovsdb_type type
Definition: ovsdb-idl-provider.h:43
static void ovsrec_autoattach_unparse_system_description(struct ovsdb_idl_row *row OVS_UNUSED)
Definition: vswitch-idl.c:177
bool mutable
Definition: ovsdb-idl-provider.h:44
Definition: ovsdb-types.h:29
struct ovsdb_base_type::@145::ovsdb_integer_constraints integer
#define ovsrec_autoattach_col_system_name
Definition: vswitch-idl.h:37
#define ovsrec_autoattach_col_mappings
Definition: vswitch-idl.h:38
void ovsrec_autoattach_delete ( const struct ovsrec_autoattach row)
235 {
237 }
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:16
void ovsdb_idl_txn_delete(const struct ovsdb_idl_row *row_)
Definition: ovsdb-idl.c:2208
const struct ovsrec_autoattach* ovsrec_autoattach_first ( const struct ovsdb_idl idl)
217 {
219 }
struct ovsdb_idl_table_class ovsrec_table_classes[OVSREC_N_TABLES]
Definition: vswitch-idl.c:21482
Definition: vswitch-idl.h:1914
static struct ovsrec_autoattach * ovsrec_autoattach_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:22
const struct ovsdb_idl_row * ovsdb_idl_first_row(const struct ovsdb_idl *idl, const struct ovsdb_idl_table_class *table_class)
Definition: ovsdb-idl.c:1290
const struct ovsrec_autoattach* ovsrec_autoattach_get_for_uuid ( const struct ovsdb_idl idl,
const struct uuid uuid 
)
205 {
207 }
const struct ovsdb_idl_row * ovsdb_idl_get_row_for_uuid(const struct ovsdb_idl *idl, const struct ovsdb_idl_table_class *tc, const struct uuid *uuid)
Definition: ovsdb-idl.c:1262
struct ovsdb_idl_table_class ovsrec_table_classes[OVSREC_N_TABLES]
Definition: vswitch-idl.c:21482
Definition: vswitch-idl.h:1914
static struct ovsrec_autoattach * ovsrec_autoattach_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:22
const struct ovsdb_datum* ovsrec_autoattach_get_mappings ( const struct ovsrec_autoattach row,
enum ovsdb_atomic_type key_type  OVS_UNUSED,
enum ovsdb_atomic_type value_type  OVS_UNUSED 
)
372 {
373  ovs_assert(key_type == OVSDB_TYPE_INTEGER);
374  ovs_assert(value_type == OVSDB_TYPE_INTEGER);
376 }
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: ovsdb-types.h:30
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:16
const struct ovsdb_datum * ovsdb_idl_read(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column)
Definition: ovsdb-idl.c:1320
#define ovsrec_autoattach_col_mappings
Definition: vswitch-idl.h:38
const struct ovsdb_datum* ovsrec_autoattach_get_system_description ( const struct ovsrec_autoattach row,
enum ovsdb_atomic_type key_type  OVS_UNUSED 
)
400 {
401  ovs_assert(key_type == OVSDB_TYPE_STRING);
403 }
#define ovs_assert(CONDITION)
Definition: util.h:73
#define ovsrec_autoattach_col_system_description
Definition: vswitch-idl.h:39
Definition: ovsdb-types.h:33
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:16
const struct ovsdb_datum * ovsdb_idl_read(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column)
Definition: ovsdb-idl.c:1320
const struct ovsdb_datum* ovsrec_autoattach_get_system_name ( const struct ovsrec_autoattach row,
enum ovsdb_atomic_type key_type  OVS_UNUSED 
)
427 {
428  ovs_assert(key_type == OVSDB_TYPE_STRING);
430 }
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: ovsdb-types.h:33
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:16
const struct ovsdb_datum * ovsdb_idl_read(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column)
Definition: ovsdb-idl.c:1320
#define ovsrec_autoattach_col_system_name
Definition: vswitch-idl.h:37
void ovsrec_autoattach_init ( struct ovsrec_autoattach row)
197 {
198  memset(row, 0, sizeof *row);
199 }
static void ovsrec_autoattach_init__ ( struct ovsdb_idl_row row)
static
190 {
192 }
void ovsrec_autoattach_init(struct ovsrec_autoattach *row)
Definition: vswitch-idl.c:196
static struct ovsrec_autoattach * ovsrec_autoattach_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:22
struct ovsrec_autoattach* ovsrec_autoattach_insert ( struct ovsdb_idl_txn txn)
248 {
250 }
struct ovsdb_idl_table_class ovsrec_table_classes[OVSREC_N_TABLES]
Definition: vswitch-idl.c:21482
const struct ovsdb_idl_row * ovsdb_idl_txn_insert(struct ovsdb_idl_txn *txn, const struct ovsdb_idl_table_class *class, const struct uuid *uuid)
Definition: ovsdb-idl.c:2247
Definition: vswitch-idl.h:1914
static struct ovsrec_autoattach * ovsrec_autoattach_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:22
const struct ovsrec_autoattach* ovsrec_autoattach_next ( const struct ovsrec_autoattach row)
225 {
227 }
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:16
const struct ovsdb_idl_row * ovsdb_idl_next_row(const struct ovsdb_idl_row *row)
Definition: ovsdb-idl.c:1301
static struct ovsrec_autoattach * ovsrec_autoattach_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:22
static void ovsrec_autoattach_parse_mappings ( struct ovsdb_idl_row row_,
const struct ovsdb_datum datum 
)
static
121 {
122  struct ovsrec_autoattach *row = ovsrec_autoattach_cast(row_);
123  size_t i;
124 
126  row->key_mappings = NULL;
127  row->value_mappings = NULL;
128  row->n_mappings = 0;
129  for (i = 0; i < datum->n; i++) {
130  if (!row->n_mappings) {
131  row->key_mappings = xmalloc(datum->n * sizeof *row->key_mappings);
132  row->value_mappings = xmalloc(datum->n * sizeof *row->value_mappings);
133  }
134  row->key_mappings[row->n_mappings] = datum->keys[i].integer;
135  row->value_mappings[row->n_mappings] = datum->values[i].integer;
136  row->n_mappings++;
137  }
138 }
int64_t integer
Definition: ovsdb-data.h:30
int64_t * value_mappings
Definition: vswitch-idl.h:20
#define ovs_assert(CONDITION)
Definition: util.h:73
union ovsdb_atom * keys
Definition: ovsdb-data.h:127
void * xmalloc(size_t size)
Definition: util.c:110
union ovsdb_atom * values
Definition: ovsdb-data.h:128
static bool inited
Definition: vswitch-idl.c:18
unsigned int n
Definition: ovsdb-data.h:126
Definition: vswitch-idl.h:15
int64_t * key_mappings
Definition: vswitch-idl.h:19
static struct ovsrec_autoattach * ovsrec_autoattach_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:22
size_t n_mappings
Definition: vswitch-idl.h:21
static void ovsrec_autoattach_parse_system_description ( struct ovsdb_idl_row row_,
const struct ovsdb_datum datum 
)
static
142 {
143  struct ovsrec_autoattach *row = ovsrec_autoattach_cast(row_);
144 
146  if (datum->n >= 1) {
147  row->system_description = datum->keys[0].string;
148  } else {
149  row->system_description = "";
150  }
151 }
#define ovs_assert(CONDITION)
Definition: util.h:73
char * string
Definition: ovsdb-data.h:33
union ovsdb_atom * keys
Definition: ovsdb-data.h:127
static bool inited
Definition: vswitch-idl.c:18
char * system_description
Definition: vswitch-idl.h:24
unsigned int n
Definition: ovsdb-data.h:126
Definition: vswitch-idl.h:15
static struct ovsrec_autoattach * ovsrec_autoattach_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:22
static void ovsrec_autoattach_parse_system_name ( struct ovsdb_idl_row row_,
const struct ovsdb_datum datum 
)
static
155 {
156  struct ovsrec_autoattach *row = ovsrec_autoattach_cast(row_);
157 
159  if (datum->n >= 1) {
160  row->system_name = datum->keys[0].string;
161  } else {
162  row->system_name = "";
163  }
164 }
#define ovs_assert(CONDITION)
Definition: util.h:73
char * system_name
Definition: vswitch-idl.h:27
char * string
Definition: ovsdb-data.h:33
union ovsdb_atom * keys
Definition: ovsdb-data.h:127
static bool inited
Definition: vswitch-idl.c:18
unsigned int n
Definition: ovsdb-data.h:126
Definition: vswitch-idl.h:15
static struct ovsrec_autoattach * ovsrec_autoattach_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:22
void ovsrec_autoattach_set_mappings ( const struct ovsrec_autoattach row,
const int64_t key_mappings,
const int64_t value_mappings,
size_t  n_mappings 
)
441 {
442  struct ovsdb_datum datum;
443  size_t i;
444 
446  datum.n = n_mappings;
447  datum.keys = n_mappings ? xmalloc(n_mappings * sizeof *datum.keys) : NULL;
448  datum.values = xmalloc(n_mappings * sizeof *datum.values);
449  for (i = 0; i < n_mappings; i++) {
450  datum.keys[i].integer = key_mappings[i];
451  datum.values[i].integer = value_mappings[i];
452  }
455 }
Definition: ovsdb-data.h:125
#define ovs_assert(CONDITION)
Definition: util.h:73
size_t ovsdb_datum_sort_unique(struct ovsdb_datum *datum, enum ovsdb_atomic_type key_type, enum ovsdb_atomic_type value_type)
Definition: ovsdb-data.c:1089
Definition: ovsdb-types.h:30
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:16
void * xmalloc(size_t size)
Definition: util.c:110
static bool inited
Definition: vswitch-idl.c:18
struct ovsdb_idl_column ovsrec_autoattach_columns[OVSREC_AUTOATTACH_N_COLUMNS]
Definition: vswitch-idl.c:493
Definition: vswitch-idl.h:31
void ovsdb_idl_txn_write(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column, struct ovsdb_datum *datum)
Definition: ovsdb-idl.c:2123
void ovsrec_autoattach_set_system_description ( const struct ovsrec_autoattach row,
const char *  system_description 
)
463 {
464  struct ovsdb_datum datum;
465  union ovsdb_atom key;
466 
468  datum.n = 1;
469  datum.keys = &key;
470  key.string = CONST_CAST(char *, system_description);
471  datum.values = NULL;
473 }
Definition: ovsdb-data.h:125
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: ovsdb-data.h:29
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:16
Definition: vswitch-idl.h:32
static bool inited
Definition: vswitch-idl.c:18
struct ovsdb_idl_column ovsrec_autoattach_columns[OVSREC_AUTOATTACH_N_COLUMNS]
Definition: vswitch-idl.c:493
#define CONST_CAST(TYPE, POINTER)
Definition: util.h:88
static struct aes128 key
Definition: uuid.c:34
void ovsdb_idl_txn_write_clone(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column, const struct ovsdb_datum *datum)
Definition: ovsdb-idl.c:2131
void ovsrec_autoattach_set_system_name ( const struct ovsrec_autoattach row,
const char *  system_name 
)
481 {
482  struct ovsdb_datum datum;
483  union ovsdb_atom key;
484 
486  datum.n = 1;
487  datum.keys = &key;
488  key.string = CONST_CAST(char *, system_name);
489  datum.values = NULL;
491 }
Definition: ovsdb-data.h:125
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: ovsdb-data.h:29
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:16
static bool inited
Definition: vswitch-idl.c:18
Definition: vswitch-idl.h:33
struct ovsdb_idl_column ovsrec_autoattach_columns[OVSREC_AUTOATTACH_N_COLUMNS]
Definition: vswitch-idl.c:493
#define CONST_CAST(TYPE, POINTER)
Definition: util.h:88
static struct aes128 key
Definition: uuid.c:34
void ovsdb_idl_txn_write_clone(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column, const struct ovsdb_datum *datum)
Definition: ovsdb-idl.c:2131
static void ovsrec_autoattach_unparse_mappings ( struct ovsdb_idl_row row_)
static
168 {
169  struct ovsrec_autoattach *row = ovsrec_autoattach_cast(row_);
170 
172  free(row->key_mappings);
173  free(row->value_mappings);
174 }
int64_t * value_mappings
Definition: vswitch-idl.h:20
#define ovs_assert(CONDITION)
Definition: util.h:73
static bool inited
Definition: vswitch-idl.c:18
Definition: vswitch-idl.h:15
int64_t * key_mappings
Definition: vswitch-idl.h:19
static struct ovsrec_autoattach * ovsrec_autoattach_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:22
static void ovsrec_autoattach_unparse_system_description ( struct ovsdb_idl_row *row  OVS_UNUSED)
static
178 {
179  /* Nothing to do. */
180 }
static void ovsrec_autoattach_unparse_system_name ( struct ovsdb_idl_row *row  OVS_UNUSED)
static
184 {
185  /* Nothing to do. */
186 }
void ovsrec_autoattach_verify_mappings ( const struct ovsrec_autoattach row)
279 {
282 }
#define ovs_assert(CONDITION)
Definition: util.h:73
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:16
static bool inited
Definition: vswitch-idl.c:18
void ovsdb_idl_txn_verify(const struct ovsdb_idl_row *, const struct ovsdb_idl_column *)
Definition: ovsdb-idl.c:2168
struct ovsdb_idl_column ovsrec_autoattach_columns[OVSREC_AUTOATTACH_N_COLUMNS]
Definition: vswitch-idl.c:493
Definition: vswitch-idl.h:31
void ovsrec_autoattach_verify_system_description ( const struct ovsrec_autoattach row)
311 {
314 }
#define ovs_assert(CONDITION)
Definition: util.h:73
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:16
Definition: vswitch-idl.h:32
static bool inited
Definition: vswitch-idl.c:18
void ovsdb_idl_txn_verify(const struct ovsdb_idl_row *, const struct ovsdb_idl_column *)
Definition: ovsdb-idl.c:2168
struct ovsdb_idl_column ovsrec_autoattach_columns[OVSREC_AUTOATTACH_N_COLUMNS]
Definition: vswitch-idl.c:493
void ovsrec_autoattach_verify_system_name ( const struct ovsrec_autoattach row)
343 {
346 }
#define ovs_assert(CONDITION)
Definition: util.h:73
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:16
static bool inited
Definition: vswitch-idl.c:18
Definition: vswitch-idl.h:33
void ovsdb_idl_txn_verify(const struct ovsdb_idl_row *, const struct ovsdb_idl_column *)
Definition: ovsdb-idl.c:2168
struct ovsdb_idl_column ovsrec_autoattach_columns[OVSREC_AUTOATTACH_N_COLUMNS]
Definition: vswitch-idl.c:493
static struct ovsrec_bridge* ovsrec_bridge_cast ( const struct ovsdb_idl_row row)
static
29 {
30  return row ? CONTAINER_OF(row, struct ovsrec_bridge, header_) : NULL;
31 }
Definition: vswitch-idl.h:73
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:16
#define CONTAINER_OF(POINTER, STRUCT, MEMBER)
Definition: util.h:207
static void ovsrec_bridge_columns_init ( void  )
static
2966 {
2967  struct ovsdb_idl_column *c;
2968 
2969  /* Initialize ovsrec_bridge_col_auto_attach. */
2971  c->name = "auto_attach";
2973  c->type.key.u.uuid.refTableName = "AutoAttach";
2974  c->type.key.u.uuid.refType = OVSDB_REF_STRONG;
2976  c->type.n_min = 0;
2977  c->type.n_max = 1;
2978  c->mutable = true;
2981 
2982  /* Initialize ovsrec_bridge_col_controller. */
2984  c->name = "controller";
2986  c->type.key.u.uuid.refTableName = "Controller";
2987  c->type.key.u.uuid.refType = OVSDB_REF_STRONG;
2989  c->type.n_min = 0;
2990  c->type.n_max = UINT_MAX;
2991  c->mutable = true;
2994 
2995  /* Initialize ovsrec_bridge_col_datapath_id. */
2997  c->name = "datapath_id";
2999  c->type.key.u.string.minLen = 0;
3001  c->type.n_min = 0;
3002  c->type.n_max = 1;
3003  c->mutable = true;
3006 
3007  /* Initialize ovsrec_bridge_col_datapath_type. */
3009  c->name = "datapath_type";
3011  c->type.key.u.string.minLen = 0;
3013  c->type.n_min = 1;
3014  c->type.n_max = 1;
3015  c->mutable = true;
3018 
3019  /* Initialize ovsrec_bridge_col_datapath_version. */
3021  c->name = "datapath_version";
3023  c->type.key.u.string.minLen = 0;
3025  c->type.n_min = 1;
3026  c->type.n_max = 1;
3027  c->mutable = true;
3030 
3031  /* Initialize ovsrec_bridge_col_external_ids. */
3033  c->name = "external_ids";
3035  c->type.key.u.string.minLen = 0;
3037  c->type.value.u.string.minLen = 0;
3038  c->type.n_min = 0;
3039  c->type.n_max = UINT_MAX;
3040  c->mutable = true;
3043 
3044  /* Initialize ovsrec_bridge_col_fail_mode. */
3046  c->name = "fail_mode";
3048  c->type.key.enum_ = xmalloc(sizeof *c->type.key.enum_);
3049  c->type.key.enum_->n = 2;
3050  c->type.key.enum_->keys = xmalloc(2 * sizeof *c->type.key.enum_->keys);
3051  c->type.key.enum_->keys[0].string = xstrdup("secure");
3052  c->type.key.enum_->keys[1].string = xstrdup("standalone");
3053  c->type.key.enum_->values = NULL;
3055  c->type.key.u.string.minLen = 0;
3057  c->type.n_min = 0;
3058  c->type.n_max = 1;
3059  c->mutable = true;
3062 
3063  /* Initialize ovsrec_bridge_col_flood_vlans. */
3065  c->name = "flood_vlans";
3067  c->type.key.u.integer.min = INT64_C(0);
3068  c->type.key.u.integer.max = INT64_C(4095);
3070  c->type.n_min = 0;
3071  c->type.n_max = 4096;
3072  c->mutable = true;
3075 
3076  /* Initialize ovsrec_bridge_col_flow_tables. */
3078  c->name = "flow_tables";
3080  c->type.key.u.integer.min = INT64_C(0);
3081  c->type.key.u.integer.max = INT64_C(254);
3083  c->type.value.u.uuid.refTableName = "Flow_Table";
3084  c->type.value.u.uuid.refType = OVSDB_REF_STRONG;
3085  c->type.n_min = 0;
3086  c->type.n_max = UINT_MAX;
3087  c->mutable = true;
3090 
3091  /* Initialize ovsrec_bridge_col_ipfix. */
3093  c->name = "ipfix";
3095  c->type.key.u.uuid.refTableName = "IPFIX";
3096  c->type.key.u.uuid.refType = OVSDB_REF_STRONG;
3098  c->type.n_min = 0;
3099  c->type.n_max = 1;
3100  c->mutable = true;
3103 
3104  /* Initialize ovsrec_bridge_col_mcast_snooping_enable. */
3106  c->name = "mcast_snooping_enable";
3109  c->type.n_min = 1;
3110  c->type.n_max = 1;
3111  c->mutable = true;
3114 
3115  /* Initialize ovsrec_bridge_col_mirrors. */
3117  c->name = "mirrors";
3119  c->type.key.u.uuid.refTableName = "Mirror";
3120  c->type.key.u.uuid.refType = OVSDB_REF_STRONG;
3122  c->type.n_min = 0;
3123  c->type.n_max = UINT_MAX;
3124  c->mutable = true;
3127 
3128  /* Initialize ovsrec_bridge_col_name. */
3130  c->name = "name";
3132  c->type.key.u.string.minLen = 0;
3134  c->type.n_min = 1;
3135  c->type.n_max = 1;
3136  c->mutable = false;
3139 
3140  /* Initialize ovsrec_bridge_col_netflow. */
3142  c->name = "netflow";
3144  c->type.key.u.uuid.refTableName = "NetFlow";
3145  c->type.key.u.uuid.refType = OVSDB_REF_STRONG;
3147  c->type.n_min = 0;
3148  c->type.n_max = 1;
3149  c->mutable = true;
3152 
3153  /* Initialize ovsrec_bridge_col_other_config. */
3155  c->name = "other_config";
3157  c->type.key.u.string.minLen = 0;
3159  c->type.value.u.string.minLen = 0;
3160  c->type.n_min = 0;
3161  c->type.n_max = UINT_MAX;
3162  c->mutable = true;
3165 
3166  /* Initialize ovsrec_bridge_col_ports. */
3168  c->name = "ports";
3170  c->type.key.u.uuid.refTableName = "Port";
3171  c->type.key.u.uuid.refType = OVSDB_REF_STRONG;
3173  c->type.n_min = 0;
3174  c->type.n_max = UINT_MAX;
3175  c->mutable = true;
3178 
3179  /* Initialize ovsrec_bridge_col_protocols. */
3181  c->name = "protocols";
3183  c->type.key.enum_ = xmalloc(sizeof *c->type.key.enum_);
3184  c->type.key.enum_->n = 6;
3185  c->type.key.enum_->keys = xmalloc(6 * sizeof *c->type.key.enum_->keys);
3186  c->type.key.enum_->keys[0].string = xstrdup("OpenFlow10");
3187  c->type.key.enum_->keys[1].string = xstrdup("OpenFlow11");
3188  c->type.key.enum_->keys[2].string = xstrdup("OpenFlow12");
3189  c->type.key.enum_->keys[3].string = xstrdup("OpenFlow13");
3190  c->type.key.enum_->keys[4].string = xstrdup("OpenFlow14");
3191  c->type.key.enum_->keys[5].string = xstrdup("OpenFlow15");
3192  c->type.key.enum_->values = NULL;
3194  c->type.key.u.string.minLen = 0;
3196  c->type.n_min = 0;
3197  c->type.n_max = UINT_MAX;
3198  c->mutable = true;
3201 
3202  /* Initialize ovsrec_bridge_col_rstp_enable. */
3204  c->name = "rstp_enable";
3207  c->type.n_min = 1;
3208  c->type.n_max = 1;
3209  c->mutable = true;
3212 
3213  /* Initialize ovsrec_bridge_col_rstp_status. */
3215  c->name = "rstp_status";
3217  c->type.key.u.string.minLen = 0;
3219  c->type.value.u.string.minLen = 0;
3220  c->type.n_min = 0;
3221  c->type.n_max = UINT_MAX;
3222  c->mutable = true;
3225 
3226  /* Initialize ovsrec_bridge_col_sflow. */
3228  c->name = "sflow";
3230  c->type.key.u.uuid.refTableName = "sFlow";
3231  c->type.key.u.uuid.refType = OVSDB_REF_STRONG;
3233  c->type.n_min = 0;
3234  c->type.n_max = 1;
3235  c->mutable = true;
3238 
3239  /* Initialize ovsrec_bridge_col_status. */
3241  c->name = "status";
3243  c->type.key.u.string.minLen = 0;
3245  c->type.value.u.string.minLen = 0;
3246  c->type.n_min = 0;
3247  c->type.n_max = UINT_MAX;
3248  c->mutable = true;
3251 
3252  /* Initialize ovsrec_bridge_col_stp_enable. */
3254  c->name = "stp_enable";
3257  c->type.n_min = 1;
3258  c->type.n_max = 1;
3259  c->mutable = true;
3262 }
void(* unparse)(struct ovsdb_idl_row *)
Definition: ovsdb-idl-provider.h:46
Definition: ovsdb-idl-provider.h:41
static void ovsrec_bridge_parse_flow_tables(struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
Definition: vswitch-idl.c:663
static void ovsrec_bridge_parse_auto_attach(struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
Definition: vswitch-idl.c:543
static void ovsrec_bridge_parse_protocols(struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
Definition: vswitch-idl.c:796
struct ovsdb_base_type::@145::ovsdb_string_constraints string
#define ovsrec_bridge_col_flood_vlans
Definition: vswitch-idl.h:182
#define ovsrec_bridge_col_datapath_id
Definition: vswitch-idl.h:176
static void ovsrec_bridge_unparse_protocols(struct ovsdb_idl_row *row_)
Definition: vswitch-idl.c:1001
static void ovsrec_bridge_parse_rstp_status(struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
Definition: vswitch-idl.c:827
static void ovsrec_bridge_parse_flood_vlans(struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
Definition: vswitch-idl.c:644
#define ovsrec_bridge_col_name
Definition: vswitch-idl.h:192
void ovsdb_base_type_init(struct ovsdb_base_type *base, enum ovsdb_atomic_type type)
Definition: ovsdb-types.c:117
static void ovsrec_bridge_parse_netflow(struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
Definition: vswitch-idl.c:747
union ovsdb_base_type::@145 u
#define ovsrec_bridge_col_mirrors
Definition: vswitch-idl.h:178
unsigned int n_min
Definition: ovsdb-types.h:136
struct ovsdb_base_type key
Definition: ovsdb-types.h:134
#define ovsrec_bridge_col_sflow
Definition: vswitch-idl.h:193
void(* parse)(struct ovsdb_idl_row *, const struct ovsdb_datum *)
Definition: ovsdb-idl-provider.h:45
static void ovsrec_bridge_unparse_status(struct ovsdb_idl_row *row_)
Definition: vswitch-idl.c:1031
unsigned int n_max
Definition: ovsdb-types.h:137
#define ovsrec_bridge_col_flow_tables
Definition: vswitch-idl.h:195
char * string
Definition: ovsdb-data.h:33
static void ovsrec_bridge_unparse_ipfix(struct ovsdb_idl_row *row OVS_UNUSED)
Definition: vswitch-idl.c:950
static void ovsrec_bridge_parse_fail_mode(struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
Definition: vswitch-idl.c:631
Definition: ovsdb-types.h:33
struct ovsdb_base_type value
Definition: ovsdb-types.h:135
char * name
Definition: ovsdb-idl-provider.h:42
#define ovsrec_bridge_col_mcast_snooping_enable
Definition: vswitch-idl.h:188
Definition: ovsdb-types.h:34
void ovsdb_datum_sort_assert(struct ovsdb_datum *datum, enum ovsdb_atomic_type key_type)
Definition: ovsdb-data.c:1074
#define ovsrec_bridge_col_datapath_type
Definition: vswitch-idl.h:177
static void ovsrec_bridge_unparse_rstp_status(struct ovsdb_idl_row *row_)
Definition: vswitch-idl.c:1016
union ovsdb_atom * keys
Definition: ovsdb-data.h:127
Definition: ovsdb-types.h:30
static void ovsrec_bridge_unparse_name(struct ovsdb_idl_row *row OVS_UNUSED)
Definition: vswitch-idl.c:971
static void ovsrec_bridge_parse_external_ids(struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
Definition: vswitch-idl.c:616
static void ovsrec_bridge_unparse_netflow(struct ovsdb_idl_row *row OVS_UNUSED)
Definition: vswitch-idl.c:977
void * xmalloc(size_t size)
Definition: util.c:110
#define ovsrec_bridge_col_rstp_status
Definition: vswitch-idl.h:179
#define ovsrec_bridge_col_rstp_enable
Definition: vswitch-idl.h:181
#define ovsrec_bridge_col_controller
Definition: vswitch-idl.h:186
union ovsdb_atom * values
Definition: ovsdb-data.h:128
char * xstrdup(const char *s)
Definition: util.c:149
static void ovsrec_bridge_unparse_external_ids(struct ovsdb_idl_row *row_)
Definition: vswitch-idl.c:916
static void ovsrec_bridge_unparse_auto_attach(struct ovsdb_idl_row *row OVS_UNUSED)
Definition: vswitch-idl.c:883
#define ovsrec_bridge_col_external_ids
Definition: vswitch-idl.h:180
static void ovsrec_bridge_parse_sflow(struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
Definition: vswitch-idl.c:842
static void ovsrec_bridge_unparse_fail_mode(struct ovsdb_idl_row *row OVS_UNUSED)
Definition: vswitch-idl.c:925
static void ovsrec_bridge_parse_mirrors(struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
Definition: vswitch-idl.c:713
#define ovsrec_bridge_col_ports
Definition: vswitch-idl.h:196
#define ovsrec_bridge_col_netflow
Definition: vswitch-idl.h:189
static void ovsrec_bridge_parse_ports(struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
Definition: vswitch-idl.c:775
struct ovsdb_type type
Definition: ovsdb-idl-provider.h:43
unsigned int n
Definition: ovsdb-data.h:126
struct ovsdb_base_type::@145::ovsdb_uuid_constraints uuid
static void ovsrec_bridge_parse_name(struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
Definition: vswitch-idl.c:734
#define ovsrec_bridge_col_datapath_version
Definition: vswitch-idl.h:183
static void ovsrec_bridge_parse_datapath_id(struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
Definition: vswitch-idl.c:577
#define ovsrec_bridge_col_other_config
Definition: vswitch-idl.h:194
#define ovsrec_bridge_col_fail_mode
Definition: vswitch-idl.h:191
bool mutable
Definition: ovsdb-idl-provider.h:44
#define ovsrec_bridge_col_stp_enable
Definition: vswitch-idl.h:197
static void ovsrec_bridge_unparse_sflow(struct ovsdb_idl_row *row OVS_UNUSED)
Definition: vswitch-idl.c:1025
Definition: ovsdb-types.h:29
static void ovsrec_bridge_unparse_other_config(struct ovsdb_idl_row *row_)
Definition: vswitch-idl.c:983
static void ovsrec_bridge_parse_stp_enable(struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
Definition: vswitch-idl.c:870
#define ovsrec_bridge_col_status
Definition: vswitch-idl.h:184
struct ovsdb_base_type::@145::ovsdb_integer_constraints integer
static void ovsrec_bridge_unparse_ports(struct ovsdb_idl_row *row_)
Definition: vswitch-idl.c:992
static void ovsrec_bridge_parse_mcast_snooping_enable(struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
Definition: vswitch-idl.c:700
static void ovsrec_bridge_unparse_flood_vlans(struct ovsdb_idl_row *row_)
Definition: vswitch-idl.c:931
static void ovsrec_bridge_unparse_flow_tables(struct ovsdb_idl_row *row_)
Definition: vswitch-idl.c:940
static void ovsrec_bridge_unparse_controller(struct ovsdb_idl_row *row_)
Definition: vswitch-idl.c:889
static void ovsrec_bridge_parse_datapath_type(struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
Definition: vswitch-idl.c:590
static void ovsrec_bridge_unparse_mcast_snooping_enable(struct ovsdb_idl_row *row OVS_UNUSED)
Definition: vswitch-idl.c:956
static void ovsrec_bridge_parse_controller(struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
Definition: vswitch-idl.c:556
#define ovsrec_bridge_col_ipfix
Definition: vswitch-idl.h:185
static void ovsrec_bridge_unparse_datapath_id(struct ovsdb_idl_row *row OVS_UNUSED)
Definition: vswitch-idl.c:898
Definition: ovsdb-types.h:48
Definition: ovsdb-types.h:32
static void ovsrec_bridge_unparse_stp_enable(struct ovsdb_idl_row *row OVS_UNUSED)
Definition: vswitch-idl.c:1040
static void ovsrec_bridge_parse_datapath_version(struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
Definition: vswitch-idl.c:603
static void ovsrec_bridge_unparse_datapath_type(struct ovsdb_idl_row *row OVS_UNUSED)
Definition: vswitch-idl.c:904
static void ovsrec_bridge_parse_status(struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
Definition: vswitch-idl.c:855
static void ovsrec_bridge_parse_ipfix(struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
Definition: vswitch-idl.c:687
struct ovsdb_datum * enum_
Definition: ovsdb-types.h:57
static void ovsrec_bridge_unparse_datapath_version(struct ovsdb_idl_row *row OVS_UNUSED)
Definition: vswitch-idl.c:910
static void ovsrec_bridge_parse_other_config(struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
Definition: vswitch-idl.c:760
static void ovsrec_bridge_parse_rstp_enable(struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
Definition: vswitch-idl.c:814
#define ovsrec_bridge_col_auto_attach
Definition: vswitch-idl.h:187
static void ovsrec_bridge_unparse_mirrors(struct ovsdb_idl_row *row_)
Definition: vswitch-idl.c:962
static void ovsrec_bridge_unparse_rstp_enable(struct ovsdb_idl_row *row OVS_UNUSED)
Definition: vswitch-idl.c:1010
#define ovsrec_bridge_col_protocols
Definition: vswitch-idl.h:190
void ovsrec_bridge_delete ( const struct ovsrec_bridge row)
1096 {
1098 }
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:74
void ovsdb_idl_txn_delete(const struct ovsdb_idl_row *row_)
Definition: ovsdb-idl.c:2208
const struct ovsrec_bridge* ovsrec_bridge_first ( const struct ovsdb_idl idl)
1078 {
1080 }
struct ovsdb_idl_table_class ovsrec_table_classes[OVSREC_N_TABLES]
Definition: vswitch-idl.c:21482
Definition: vswitch-idl.h:1915
static struct ovsrec_bridge * ovsrec_bridge_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:28
const struct ovsdb_idl_row * ovsdb_idl_first_row(const struct ovsdb_idl *idl, const struct ovsdb_idl_table_class *table_class)
Definition: ovsdb-idl.c:1290
const struct ovsdb_datum* ovsrec_bridge_get_auto_attach ( const struct ovsrec_bridge row,
enum ovsdb_atomic_type key_type  OVS_UNUSED 
)
1839 {
1840  ovs_assert(key_type == OVSDB_TYPE_UUID);
1842 }
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: ovsdb-types.h:34
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:74
const struct ovsdb_datum * ovsdb_idl_read(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column)
Definition: ovsdb-idl.c:1320
#define ovsrec_bridge_col_auto_attach
Definition: vswitch-idl.h:187
const struct ovsdb_datum* ovsrec_bridge_get_controller ( const struct ovsrec_bridge row,
enum ovsdb_atomic_type key_type  OVS_UNUSED 
)
1866 {
1867  ovs_assert(key_type == OVSDB_TYPE_UUID);
1869 }
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: ovsdb-types.h:34
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:74
#define ovsrec_bridge_col_controller
Definition: vswitch-idl.h:186
const struct ovsdb_datum * ovsdb_idl_read(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column)
Definition: ovsdb-idl.c:1320
const struct ovsdb_datum* ovsrec_bridge_get_datapath_id ( const struct ovsrec_bridge row,
enum ovsdb_atomic_type key_type  OVS_UNUSED 
)
1893 {
1894  ovs_assert(key_type == OVSDB_TYPE_STRING);
1896 }
#define ovsrec_bridge_col_datapath_id
Definition: vswitch-idl.h:176
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: ovsdb-types.h:33
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:74
const struct ovsdb_datum * ovsdb_idl_read(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column)
Definition: ovsdb-idl.c:1320
const struct ovsdb_datum* ovsrec_bridge_get_datapath_type ( const struct ovsrec_bridge row,
enum ovsdb_atomic_type key_type  OVS_UNUSED 
)
1920 {
1921  ovs_assert(key_type == OVSDB_TYPE_STRING);
1923 }
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: ovsdb-types.h:33
#define ovsrec_bridge_col_datapath_type
Definition: vswitch-idl.h:177
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:74
const struct ovsdb_datum * ovsdb_idl_read(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column)
Definition: ovsdb-idl.c:1320
const struct ovsdb_datum* ovsrec_bridge_get_datapath_version ( const struct ovsrec_bridge row,
enum ovsdb_atomic_type key_type  OVS_UNUSED 
)
1947 {
1948  ovs_assert(key_type == OVSDB_TYPE_STRING);
1950 }
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: ovsdb-types.h:33
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:74
#define ovsrec_bridge_col_datapath_version
Definition: vswitch-idl.h:183
const struct ovsdb_datum * ovsdb_idl_read(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column)
Definition: ovsdb-idl.c:1320
const struct ovsdb_datum* ovsrec_bridge_get_external_ids ( const struct ovsrec_bridge row,
enum ovsdb_atomic_type key_type  OVS_UNUSED,
enum ovsdb_atomic_type value_type  OVS_UNUSED 
)
1976 {
1977  ovs_assert(key_type == OVSDB_TYPE_STRING);
1978  ovs_assert(value_type == OVSDB_TYPE_STRING);
1980 }
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: ovsdb-types.h:33
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:74
#define ovsrec_bridge_col_external_ids
Definition: vswitch-idl.h:180
const struct ovsdb_datum * ovsdb_idl_read(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column)
Definition: ovsdb-idl.c:1320
const struct ovsdb_datum* ovsrec_bridge_get_fail_mode ( const struct ovsrec_bridge row,
enum ovsdb_atomic_type key_type  OVS_UNUSED 
)
2004 {
2005  ovs_assert(key_type == OVSDB_TYPE_STRING);
2007 }
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: ovsdb-types.h:33
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:74
#define ovsrec_bridge_col_fail_mode
Definition: vswitch-idl.h:191
const struct ovsdb_datum * ovsdb_idl_read(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column)
Definition: ovsdb-idl.c:1320
const struct ovsdb_datum* ovsrec_bridge_get_flood_vlans ( const struct ovsrec_bridge row,
enum ovsdb_atomic_type key_type  OVS_UNUSED 
)
2031 {
2032  ovs_assert(key_type == OVSDB_TYPE_INTEGER);
2034 }
#define ovsrec_bridge_col_flood_vlans
Definition: vswitch-idl.h:182
#define ovs_assert(CONDITION)
Definition: util.h:73
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:74
Definition: ovsdb-types.h:30
const struct ovsdb_datum * ovsdb_idl_read(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column)
Definition: ovsdb-idl.c:1320
const struct ovsdb_datum* ovsrec_bridge_get_flow_tables ( const struct ovsrec_bridge row,
enum ovsdb_atomic_type key_type  OVS_UNUSED,
enum ovsdb_atomic_type value_type  OVS_UNUSED 
)
2060 {
2061  ovs_assert(key_type == OVSDB_TYPE_INTEGER);
2062  ovs_assert(value_type == OVSDB_TYPE_UUID);
2064 }
#define ovs_assert(CONDITION)
Definition: util.h:73
#define ovsrec_bridge_col_flow_tables
Definition: vswitch-idl.h:195
Definition: ovsdb-types.h:34
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:74
Definition: ovsdb-types.h:30
const struct ovsdb_datum * ovsdb_idl_read(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column)
Definition: ovsdb-idl.c:1320
const struct ovsrec_bridge* ovsrec_bridge_get_for_uuid ( const struct ovsdb_idl idl,
const struct uuid uuid 
)
1066 {
1068 }
const struct ovsdb_idl_row * ovsdb_idl_get_row_for_uuid(const struct ovsdb_idl *idl, const struct ovsdb_idl_table_class *tc, const struct uuid *uuid)
Definition: ovsdb-idl.c:1262
struct ovsdb_idl_table_class ovsrec_table_classes[OVSREC_N_TABLES]
Definition: vswitch-idl.c:21482
Definition: vswitch-idl.h:1915
static struct ovsrec_bridge * ovsrec_bridge_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:28
const struct ovsdb_datum* ovsrec_bridge_get_ipfix ( const struct ovsrec_bridge row,
enum ovsdb_atomic_type key_type  OVS_UNUSED 
)
2088 {
2089  ovs_assert(key_type == OVSDB_TYPE_UUID);
2091 }
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: ovsdb-types.h:34
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:74
const struct ovsdb_datum * ovsdb_idl_read(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column)
Definition: ovsdb-idl.c:1320
#define ovsrec_bridge_col_ipfix
Definition: vswitch-idl.h:185
const struct ovsdb_datum* ovsrec_bridge_get_mcast_snooping_enable ( const struct ovsrec_bridge row,
enum ovsdb_atomic_type key_type  OVS_UNUSED 
)
2115 {
2116  ovs_assert(key_type == OVSDB_TYPE_BOOLEAN);
2118 }
#define ovs_assert(CONDITION)
Definition: util.h:73
#define ovsrec_bridge_col_mcast_snooping_enable
Definition: vswitch-idl.h:188
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:74
const struct ovsdb_datum * ovsdb_idl_read(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column)
Definition: ovsdb-idl.c:1320
Definition: ovsdb-types.h:32
const struct ovsdb_datum* ovsrec_bridge_get_mirrors ( const struct ovsrec_bridge row,
enum ovsdb_atomic_type key_type  OVS_UNUSED 
)
2142 {
2143  ovs_assert(key_type == OVSDB_TYPE_UUID);
2145 }
#define ovs_assert(CONDITION)
Definition: util.h:73
#define ovsrec_bridge_col_mirrors
Definition: vswitch-idl.h:178
Definition: ovsdb-types.h:34
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:74
const struct ovsdb_datum * ovsdb_idl_read(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column)
Definition: ovsdb-idl.c:1320
const struct ovsdb_datum* ovsrec_bridge_get_name ( const struct ovsrec_bridge row,
enum ovsdb_atomic_type key_type  OVS_UNUSED 
)
2169 {
2170  ovs_assert(key_type == OVSDB_TYPE_STRING);
2172 }
#define ovs_assert(CONDITION)
Definition: util.h:73
#define ovsrec_bridge_col_name
Definition: vswitch-idl.h:192
Definition: ovsdb-types.h:33
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:74
const struct ovsdb_datum * ovsdb_idl_read(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column)
Definition: ovsdb-idl.c:1320
const struct ovsdb_datum* ovsrec_bridge_get_netflow ( const struct ovsrec_bridge row,
enum ovsdb_atomic_type key_type  OVS_UNUSED 
)
2196 {
2197  ovs_assert(key_type == OVSDB_TYPE_UUID);
2199 }
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: ovsdb-types.h:34
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:74
#define ovsrec_bridge_col_netflow
Definition: vswitch-idl.h:189
const struct ovsdb_datum * ovsdb_idl_read(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column)
Definition: ovsdb-idl.c:1320
const struct ovsdb_datum* ovsrec_bridge_get_other_config ( const struct ovsrec_bridge row,
enum ovsdb_atomic_type key_type  OVS_UNUSED,
enum ovsdb_atomic_type value_type  OVS_UNUSED 
)
2225 {
2226  ovs_assert(key_type == OVSDB_TYPE_STRING);
2227  ovs_assert(value_type == OVSDB_TYPE_STRING);
2229 }
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: ovsdb-types.h:33
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:74
#define ovsrec_bridge_col_other_config
Definition: vswitch-idl.h:194
const struct ovsdb_datum * ovsdb_idl_read(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column)
Definition: ovsdb-idl.c:1320
const struct ovsdb_datum* ovsrec_bridge_get_ports ( const struct ovsrec_bridge row,
enum ovsdb_atomic_type key_type  OVS_UNUSED 
)
2253 {
2254  ovs_assert(key_type == OVSDB_TYPE_UUID);
2256 }
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: ovsdb-types.h:34
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:74
#define ovsrec_bridge_col_ports
Definition: vswitch-idl.h:196
const struct ovsdb_datum * ovsdb_idl_read(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column)
Definition: ovsdb-idl.c:1320
const struct ovsdb_datum* ovsrec_bridge_get_protocols ( const struct ovsrec_bridge row,
enum ovsdb_atomic_type key_type  OVS_UNUSED 
)
2280 {
2281  ovs_assert(key_type == OVSDB_TYPE_STRING);
2283 }
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: ovsdb-types.h:33
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:74
const struct ovsdb_datum * ovsdb_idl_read(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column)
Definition: ovsdb-idl.c:1320
#define ovsrec_bridge_col_protocols
Definition: vswitch-idl.h:190
const struct ovsdb_datum* ovsrec_bridge_get_rstp_enable ( const struct ovsrec_bridge row,
enum ovsdb_atomic_type key_type  OVS_UNUSED 
)
2307 {
2308  ovs_assert(key_type == OVSDB_TYPE_BOOLEAN);
2310 }
#define ovs_assert(CONDITION)
Definition: util.h:73
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:74
#define ovsrec_bridge_col_rstp_enable
Definition: vswitch-idl.h:181
const struct ovsdb_datum * ovsdb_idl_read(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column)
Definition: ovsdb-idl.c:1320
Definition: ovsdb-types.h:32
const struct ovsdb_datum* ovsrec_bridge_get_rstp_status ( const struct ovsrec_bridge row,
enum ovsdb_atomic_type key_type  OVS_UNUSED,
enum ovsdb_atomic_type value_type  OVS_UNUSED 
)
2336 {
2337  ovs_assert(key_type == OVSDB_TYPE_STRING);
2338  ovs_assert(value_type == OVSDB_TYPE_STRING);
2340 }
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: ovsdb-types.h:33
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:74
#define ovsrec_bridge_col_rstp_status
Definition: vswitch-idl.h:179
const struct ovsdb_datum * ovsdb_idl_read(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column)
Definition: ovsdb-idl.c:1320
const struct ovsdb_datum* ovsrec_bridge_get_sflow ( const struct ovsrec_bridge row,
enum ovsdb_atomic_type key_type  OVS_UNUSED 
)
2364 {
2365  ovs_assert(key_type == OVSDB_TYPE_UUID);
2367 }
#define ovs_assert(CONDITION)
Definition: util.h:73
#define ovsrec_bridge_col_sflow
Definition: vswitch-idl.h:193
Definition: ovsdb-types.h:34
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:74
const struct ovsdb_datum * ovsdb_idl_read(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column)
Definition: ovsdb-idl.c:1320
const struct ovsdb_datum* ovsrec_bridge_get_status ( const struct ovsrec_bridge row,
enum ovsdb_atomic_type key_type  OVS_UNUSED,
enum ovsdb_atomic_type value_type  OVS_UNUSED 
)
2393 {
2394  ovs_assert(key_type == OVSDB_TYPE_STRING);
2395  ovs_assert(value_type == OVSDB_TYPE_STRING);
2397 }
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: ovsdb-types.h:33
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:74
#define ovsrec_bridge_col_status
Definition: vswitch-idl.h:184
const struct ovsdb_datum * ovsdb_idl_read(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column)
Definition: ovsdb-idl.c:1320
const struct ovsdb_datum* ovsrec_bridge_get_stp_enable ( const struct ovsrec_bridge row,
enum ovsdb_atomic_type key_type  OVS_UNUSED 
)
2421 {
2422  ovs_assert(key_type == OVSDB_TYPE_BOOLEAN);
2424 }
#define ovs_assert(CONDITION)
Definition: util.h:73
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:74
#define ovsrec_bridge_col_stp_enable
Definition: vswitch-idl.h:197
const struct ovsdb_datum * ovsdb_idl_read(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column)
Definition: ovsdb-idl.c:1320
Definition: ovsdb-types.h:32
void ovsrec_bridge_init ( struct ovsrec_bridge row)
1054 {
1055  memset(row, 0, sizeof *row);
1056  smap_init(&row->external_ids);
1057  smap_init(&row->other_config);
1058  smap_init(&row->rstp_status);
1059  smap_init(&row->status);
1060 }
void smap_init(struct smap *smap)
Definition: smap.c:33
struct smap external_ids
Definition: vswitch-idl.h:93
struct smap rstp_status
Definition: vswitch-idl.h:138
struct smap status
Definition: vswitch-idl.h:144
struct smap other_config
Definition: vswitch-idl.h:124
static void ovsrec_bridge_init__ ( struct ovsdb_idl_row row)
static
1047 {
1049 }
void ovsrec_bridge_init(struct ovsrec_bridge *row)
Definition: vswitch-idl.c:1053
static struct ovsrec_bridge * ovsrec_bridge_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:28
struct ovsrec_bridge* ovsrec_bridge_insert ( struct ovsdb_idl_txn txn)
1109 {
1111 }
struct ovsdb_idl_table_class ovsrec_table_classes[OVSREC_N_TABLES]
Definition: vswitch-idl.c:21482
const struct ovsdb_idl_row * ovsdb_idl_txn_insert(struct ovsdb_idl_txn *txn, const struct ovsdb_idl_table_class *class, const struct uuid *uuid)
Definition: ovsdb-idl.c:2247
Definition: vswitch-idl.h:1915
static struct ovsrec_bridge * ovsrec_bridge_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:28
const struct ovsrec_bridge* ovsrec_bridge_next ( const struct ovsrec_bridge row)
1086 {
1088 }
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:74
const struct ovsdb_idl_row * ovsdb_idl_next_row(const struct ovsdb_idl_row *row)
Definition: ovsdb-idl.c:1301
static struct ovsrec_bridge * ovsrec_bridge_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:28
static void ovsrec_bridge_parse_auto_attach ( struct ovsdb_idl_row row_,
const struct ovsdb_datum datum 
)
static
544 {
545  struct ovsrec_bridge *row = ovsrec_bridge_cast(row_);
546 
548  if (datum->n >= 1) {
550  } else {
551  row->auto_attach = NULL;
552  }
553 }
Definition: vswitch-idl.h:73
struct ovsdb_idl_table_class ovsrec_table_classes[OVSREC_N_TABLES]
Definition: vswitch-idl.c:21482
#define ovs_assert(CONDITION)
Definition: util.h:73
struct ovsdb_idl_row * ovsdb_idl_get_row_arc(struct ovsdb_idl_row *src, struct ovsdb_idl_table_class *dst_table, const struct uuid *dst_uuid)
Definition: ovsdb-idl.c:1216
union ovsdb_atom * keys
Definition: ovsdb-data.h:127
static bool inited
Definition: vswitch-idl.c:18
unsigned int n
Definition: ovsdb-data.h:126
Definition: vswitch-idl.h:1914
struct uuid uuid
Definition: ovsdb-data.h:34
static struct ovsrec_autoattach * ovsrec_autoattach_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:22
static struct ovsrec_bridge * ovsrec_bridge_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:28
struct ovsrec_autoattach * auto_attach
Definition: vswitch-idl.h:77
static void ovsrec_bridge_parse_controller ( struct ovsdb_idl_row row_,
const struct ovsdb_datum datum 
)
static
557 {
558  struct ovsrec_bridge *row = ovsrec_bridge_cast(row_);
559  size_t i;
560 
562  row->controller = NULL;
563  row->n_controller = 0;
564  for (i = 0; i < datum->n; i++) {
566  if (keyRow) {
567  if (!row->n_controller) {
568  row->controller = xmalloc(datum->n * sizeof *row->controller);
569  }
570  row->controller[row->n_controller] = keyRow;
571  row->n_controller++;
572  }
573  }
574 }
Definition: vswitch-idl.h:1916
Definition: vswitch-idl.h:73
struct ovsdb_idl_table_class ovsrec_table_classes[OVSREC_N_TABLES]
Definition: vswitch-idl.c:21482
#define ovs_assert(CONDITION)
Definition: util.h:73
struct ovsdb_idl_row * ovsdb_idl_get_row_arc(struct ovsdb_idl_row *src, struct ovsdb_idl_table_class *dst_table, const struct uuid *dst_uuid)
Definition: ovsdb-idl.c:1216
union ovsdb_atom * keys
Definition: ovsdb-data.h:127
void * xmalloc(size_t size)
Definition: util.c:110
static bool inited
Definition: vswitch-idl.c:18
unsigned int n
Definition: ovsdb-data.h:126
struct uuid uuid
Definition: ovsdb-data.h:34
struct ovsrec_controller ** controller
Definition: vswitch-idl.h:80
static struct ovsrec_controller * ovsrec_controller_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:34
size_t n_controller
Definition: vswitch-idl.h:81
static struct ovsrec_bridge * ovsrec_bridge_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:28
Definition: vswitch-idl.h:288
static void ovsrec_bridge_parse_datapath_id ( struct ovsdb_idl_row row_,
const struct ovsdb_datum datum 
)
static
578 {
579  struct ovsrec_bridge *row = ovsrec_bridge_cast(row_);
580 
582  if (datum->n >= 1) {
583  row->datapath_id = datum->keys[0].string;
584  } else {
585  row->datapath_id = NULL;
586  }
587 }
Definition: vswitch-idl.h:73
#define ovs_assert(CONDITION)
Definition: util.h:73
char * string
Definition: ovsdb-data.h:33
union ovsdb_atom * keys
Definition: ovsdb-data.h:127
char * datapath_id
Definition: vswitch-idl.h:84
static bool inited
Definition: vswitch-idl.c:18
unsigned int n
Definition: ovsdb-data.h:126
static struct ovsrec_bridge * ovsrec_bridge_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:28
static void ovsrec_bridge_parse_datapath_type ( struct ovsdb_idl_row row_,
const struct ovsdb_datum datum 
)
static
591 {
592  struct ovsrec_bridge *row = ovsrec_bridge_cast(row_);
593 
595  if (datum->n >= 1) {
596  row->datapath_type = datum->keys[0].string;
597  } else {
598  row->datapath_type = "";
599  }
600 }
Definition: vswitch-idl.h:73
#define ovs_assert(CONDITION)
Definition: util.h:73
char * string
Definition: ovsdb-data.h:33
union ovsdb_atom * keys
Definition: ovsdb-data.h:127
char * datapath_type
Definition: vswitch-idl.h:87
static bool inited
Definition: vswitch-idl.c:18
unsigned int n
Definition: ovsdb-data.h:126
static struct ovsrec_bridge * ovsrec_bridge_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:28
static void ovsrec_bridge_parse_datapath_version ( struct ovsdb_idl_row row_,
const struct ovsdb_datum datum 
)
static
604 {
605  struct ovsrec_bridge *row = ovsrec_bridge_cast(row_);
606 
608  if (datum->n >= 1) {
609  row->datapath_version = datum->keys[0].string;
610  } else {
611  row->datapath_version = "";
612  }
613 }
Definition: vswitch-idl.h:73
#define ovs_assert(CONDITION)
Definition: util.h:73
char * string
Definition: ovsdb-data.h:33
union ovsdb_atom * keys
Definition: ovsdb-data.h:127
static bool inited
Definition: vswitch-idl.c:18
unsigned int n
Definition: ovsdb-data.h:126
char * datapath_version
Definition: vswitch-idl.h:90
static struct ovsrec_bridge * ovsrec_bridge_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:28
static void ovsrec_bridge_parse_external_ids ( struct ovsdb_idl_row row_,
const struct ovsdb_datum datum 
)
static
617 {
618  struct ovsrec_bridge *row = ovsrec_bridge_cast(row_);
619  size_t i;
620 
622  smap_init(&row->external_ids);
623  for (i = 0; i < datum->n; i++) {
624  smap_add(&row->external_ids,
625  datum->keys[i].string,
626  datum->values[i].string);
627  }
628 }
Definition: vswitch-idl.h:73
#define ovs_assert(CONDITION)
Definition: util.h:73
void smap_init(struct smap *smap)
Definition: smap.c:33
struct smap external_ids
Definition: vswitch-idl.h:93
char * string
Definition: ovsdb-data.h:33
struct smap_node * smap_add(struct smap *smap, const char *key, const char *value)
Definition: smap.c:50
union ovsdb_atom * keys
Definition: ovsdb-data.h:127
union ovsdb_atom * values
Definition: ovsdb-data.h:128
static bool inited
Definition: vswitch-idl.c:18
unsigned int n
Definition: ovsdb-data.h:126
static struct ovsrec_bridge * ovsrec_bridge_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:28
static void ovsrec_bridge_parse_fail_mode ( struct ovsdb_idl_row row_,
const struct ovsdb_datum datum 
)
static
632 {
633  struct ovsrec_bridge *row = ovsrec_bridge_cast(row_);
634 
636  if (datum->n >= 1) {
637  row->fail_mode = datum->keys[0].string;
638  } else {
639  row->fail_mode = NULL;
640  }
641 }
Definition: vswitch-idl.h:73
#define ovs_assert(CONDITION)
Definition: util.h:73
char * string
Definition: ovsdb-data.h:33
union ovsdb_atom * keys
Definition: ovsdb-data.h:127
static bool inited
Definition: vswitch-idl.c:18
char * fail_mode
Definition: vswitch-idl.h:96
unsigned int n
Definition: ovsdb-data.h:126
static struct ovsrec_bridge * ovsrec_bridge_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:28
static void ovsrec_bridge_parse_flood_vlans ( struct ovsdb_idl_row row_,
const struct ovsdb_datum datum 
)
static
645 {
646  struct ovsrec_bridge *row = ovsrec_bridge_cast(row_);
647  size_t n = MIN(4096, datum->n);
648  size_t i;
649 
651  row->flood_vlans = NULL;
652  row->n_flood_vlans = 0;
653  for (i = 0; i < n; i++) {
654  if (!row->n_flood_vlans) {
655  row->flood_vlans = xmalloc(n * sizeof *row->flood_vlans);
656  }
657  row->flood_vlans[row->n_flood_vlans] = datum->keys[i].integer;
658  row->n_flood_vlans++;
659  }
660 }
size_t n_flood_vlans
Definition: vswitch-idl.h:100
int64_t integer
Definition: ovsdb-data.h:30
Definition: vswitch-idl.h:73
#define ovs_assert(CONDITION)
Definition: util.h:73
union ovsdb_atom * keys
Definition: ovsdb-data.h:127
void * xmalloc(size_t size)
Definition: util.c:110
static bool inited
Definition: vswitch-idl.c:18
unsigned int n
Definition: ovsdb-data.h:126
#define MIN(_a, _b)
Definition: Util.h:68
int64_t * flood_vlans
Definition: vswitch-idl.h:99
static struct ovsrec_bridge * ovsrec_bridge_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:28
static void ovsrec_bridge_parse_flow_tables ( struct ovsdb_idl_row row_,
const struct ovsdb_datum datum 
)
static
664 {
665  struct ovsrec_bridge *row = ovsrec_bridge_cast(row_);
666  size_t i;
667 
669  row->key_flow_tables = NULL;
670  row->value_flow_tables = NULL;
671  row->n_flow_tables = 0;
672  for (i = 0; i < datum->n; i++) {
674  if (valueRow) {
675  if (!row->n_flow_tables) {
676  row->key_flow_tables = xmalloc(datum->n * sizeof *row->key_flow_tables);
677  row->value_flow_tables = xmalloc(datum->n * sizeof *row->value_flow_tables);
678  }
679  row->key_flow_tables[row->n_flow_tables] = datum->keys[i].integer;
680  row->value_flow_tables[row->n_flow_tables] = valueRow;
681  row->n_flow_tables++;
682  }
683  }
684 }
struct ovsrec_flow_table ** value_flow_tables
Definition: vswitch-idl.h:104
int64_t integer
Definition: ovsdb-data.h:30
Definition: vswitch-idl.h:73
struct ovsdb_idl_table_class ovsrec_table_classes[OVSREC_N_TABLES]
Definition: vswitch-idl.c:21482
#define ovs_assert(CONDITION)
Definition: util.h:73
struct ovsdb_idl_row * ovsdb_idl_get_row_arc(struct ovsdb_idl_row *src, struct ovsdb_idl_table_class *dst_table, const struct uuid *dst_uuid)
Definition: ovsdb-idl.c:1216
Definition: vswitch-idl.h:1918
union ovsdb_atom * keys
Definition: ovsdb-data.h:127
void * xmalloc(size_t size)
Definition: util.c:110
union ovsdb_atom * values
Definition: ovsdb-data.h:128
static bool inited
Definition: vswitch-idl.c:18
unsigned int n
Definition: ovsdb-data.h:126
struct uuid uuid
Definition: ovsdb-data.h:34
static struct ovsrec_flow_table * ovsrec_flow_table_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:46
Definition: vswitch-idl.h:509
static struct ovsrec_bridge * ovsrec_bridge_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:28
size_t n_flow_tables
Definition: vswitch-idl.h:105
int64_t * key_flow_tables
Definition: vswitch-idl.h:103
static void ovsrec_bridge_parse_ipfix ( struct ovsdb_idl_row row_,
const struct ovsdb_datum datum 
)
static
688 {
689  struct ovsrec_bridge *row = ovsrec_bridge_cast(row_);
690 
692  if (datum->n >= 1) {
694  } else {
695  row->ipfix = NULL;
696  }
697 }
Definition: vswitch-idl.h:73
Definition: vswitch-idl.h:1919
struct ovsdb_idl_table_class ovsrec_table_classes[OVSREC_N_TABLES]
Definition: vswitch-idl.c:21482
#define ovs_assert(CONDITION)
Definition: util.h:73
struct ovsdb_idl_row * ovsdb_idl_get_row_arc(struct ovsdb_idl_row *src, struct ovsdb_idl_table_class *dst_table, const struct uuid *dst_uuid)
Definition: ovsdb-idl.c:1216
union ovsdb_atom * keys
Definition: ovsdb-data.h:127
static struct ovsrec_ipfix * ovsrec_ipfix_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:52
static bool inited
Definition: vswitch-idl.c:18
unsigned int n
Definition: ovsdb-data.h:126
struct uuid uuid
Definition: ovsdb-data.h:34
struct ovsrec_ipfix * ipfix
Definition: vswitch-idl.h:108
static struct ovsrec_bridge * ovsrec_bridge_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:28
static void ovsrec_bridge_parse_mcast_snooping_enable ( struct ovsdb_idl_row row_,
const struct ovsdb_datum datum 
)
static
701 {
702  struct ovsrec_bridge *row = ovsrec_bridge_cast(row_);
703 
705  if (datum->n >= 1) {
706  row->mcast_snooping_enable = datum->keys[0].boolean;
707  } else {
708  row->mcast_snooping_enable = false;
709  }
710 }
bool mcast_snooping_enable
Definition: vswitch-idl.h:111
Definition: vswitch-idl.h:73
#define ovs_assert(CONDITION)
Definition: util.h:73
union ovsdb_atom * keys
Definition: ovsdb-data.h:127
bool boolean
Definition: ovsdb-data.h:32
static bool inited
Definition: vswitch-idl.c:18
unsigned int n
Definition: ovsdb-data.h:126
static struct ovsrec_bridge * ovsrec_bridge_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:28
static void ovsrec_bridge_parse_mirrors ( struct ovsdb_idl_row row_,
const struct ovsdb_datum datum 
)
static
714 {
715  struct ovsrec_bridge *row = ovsrec_bridge_cast(row_);
716  size_t i;
717 
719  row->mirrors = NULL;
720  row->n_mirrors = 0;
721  for (i = 0; i < datum->n; i++) {
723  if (keyRow) {
724  if (!row->n_mirrors) {
725  row->mirrors = xmalloc(datum->n * sizeof *row->mirrors);
726  }
727  row->mirrors[row->n_mirrors] = keyRow;
728  row->n_mirrors++;
729  }
730  }
731 }
Definition: vswitch-idl.h:73
struct ovsdb_idl_table_class ovsrec_table_classes[OVSREC_N_TABLES]
Definition: vswitch-idl.c:21482
static struct ovsrec_mirror * ovsrec_mirror_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:70
#define ovs_assert(CONDITION)
Definition: util.h:73
struct ovsdb_idl_row * ovsdb_idl_get_row_arc(struct ovsdb_idl_row *src, struct ovsdb_idl_table_class *dst_table, const struct uuid *dst_uuid)
Definition: ovsdb-idl.c:1216
union ovsdb_atom * keys
Definition: ovsdb-data.h:127
void * xmalloc(size_t size)
Definition: util.c:110
static bool inited
Definition: vswitch-idl.c:18
struct ovsrec_mirror ** mirrors
Definition: vswitch-idl.h:114
unsigned int n
Definition: ovsdb-data.h:126
Definition: vswitch-idl.h:1095
struct uuid uuid
Definition: ovsdb-data.h:34
size_t n_mirrors
Definition: vswitch-idl.h:115
Definition: vswitch-idl.h:1922
static struct ovsrec_bridge * ovsrec_bridge_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:28
static void ovsrec_bridge_parse_name ( struct ovsdb_idl_row row_,
const struct ovsdb_datum datum 
)
static
735 {
736  struct ovsrec_bridge *row = ovsrec_bridge_cast(row_);
737 
739  if (datum->n >= 1) {
740  row->name = datum->keys[0].string;
741  } else {
742  row->name = "";
743  }
744 }
Definition: vswitch-idl.h:73
#define ovs_assert(CONDITION)
Definition: util.h:73
char * string
Definition: ovsdb-data.h:33
union ovsdb_atom * keys
Definition: ovsdb-data.h:127
static bool inited
Definition: vswitch-idl.c:18
unsigned int n
Definition: ovsdb-data.h:126
char * name
Definition: vswitch-idl.h:118
static struct ovsrec_bridge * ovsrec_bridge_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:28
static void ovsrec_bridge_parse_netflow ( struct ovsdb_idl_row row_,
const struct ovsdb_datum datum 
)
static
748 {
749  struct ovsrec_bridge *row = ovsrec_bridge_cast(row_);
750 
752  if (datum->n >= 1) {
754  } else {
755  row->netflow = NULL;
756  }
757 }
Definition: vswitch-idl.h:73
struct ovsdb_idl_table_class ovsrec_table_classes[OVSREC_N_TABLES]
Definition: vswitch-idl.c:21482
static struct ovsrec_netflow * ovsrec_netflow_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:76
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: vswitch-idl.h:1923
struct ovsdb_idl_row * ovsdb_idl_get_row_arc(struct ovsdb_idl_row *src, struct ovsdb_idl_table_class *dst_table, const struct uuid *dst_uuid)
Definition: ovsdb-idl.c:1216
union ovsdb_atom * keys
Definition: ovsdb-data.h:127
static bool inited
Definition: vswitch-idl.c:18
struct ovsrec_netflow * netflow
Definition: vswitch-idl.h:121
unsigned int n
Definition: ovsdb-data.h:126
struct uuid uuid
Definition: ovsdb-data.h:34
static struct ovsrec_bridge * ovsrec_bridge_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:28
static void ovsrec_bridge_parse_other_config ( struct ovsdb_idl_row row_,
const struct ovsdb_datum datum 
)
static
761 {
762  struct ovsrec_bridge *row = ovsrec_bridge_cast(row_);
763  size_t i;
764 
766  smap_init(&row->other_config);
767  for (i = 0; i < datum->n; i++) {
768  smap_add(&row->other_config,
769  datum->keys[i].string,
770  datum->values[i].string);
771  }
772 }
Definition: vswitch-idl.h:73
#define ovs_assert(CONDITION)
Definition: util.h:73
void smap_init(struct smap *smap)
Definition: smap.c:33
char * string
Definition: ovsdb-data.h:33
struct smap_node * smap_add(struct smap *smap, const char *key, const char *value)
Definition: smap.c:50
union ovsdb_atom * keys
Definition: ovsdb-data.h:127
union ovsdb_atom * values
Definition: ovsdb-data.h:128
static bool inited
Definition: vswitch-idl.c:18
struct smap other_config
Definition: vswitch-idl.h:124
unsigned int n
Definition: ovsdb-data.h:126
static struct ovsrec_bridge * ovsrec_bridge_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:28
static void ovsrec_bridge_parse_ports ( struct ovsdb_idl_row row_,
const struct ovsdb_datum datum 
)
static
776 {
777  struct ovsrec_bridge *row = ovsrec_bridge_cast(row_);
778  size_t i;
779 
781  row->ports = NULL;
782  row->n_ports = 0;
783  for (i = 0; i < datum->n; i++) {
785  if (keyRow) {
786  if (!row->n_ports) {
787  row->ports = xmalloc(datum->n * sizeof *row->ports);
788  }
789  row->ports[row->n_ports] = keyRow;
790  row->n_ports++;
791  }
792  }
793 }
Definition: vswitch-idl.h:73
struct ovsdb_idl_table_class ovsrec_table_classes[OVSREC_N_TABLES]
Definition: vswitch-idl.c:21482
#define ovs_assert(CONDITION)
Definition: util.h:73
struct ovsdb_idl_row * ovsdb_idl_get_row_arc(struct ovsdb_idl_row *src, struct ovsdb_idl_table_class *dst_table, const struct uuid *dst_uuid)
Definition: ovsdb-idl.c:1216
Definition: vswitch-idl.h:1436
union ovsdb_atom * keys
Definition: ovsdb-data.h:127
void * xmalloc(size_t size)
Definition: util.c:110
static bool inited
Definition: vswitch-idl.c:18
unsigned int n
Definition: ovsdb-data.h:126
struct ovsrec_port ** ports
Definition: vswitch-idl.h:127
struct uuid uuid
Definition: ovsdb-data.h:34
static struct ovsrec_port * ovsrec_port_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:88
Definition: vswitch-idl.h:1925
size_t n_ports
Definition: vswitch-idl.h:128
static struct ovsrec_bridge * ovsrec_bridge_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:28
static void ovsrec_bridge_parse_protocols ( struct ovsdb_idl_row row_,
const struct ovsdb_datum datum 
)
static
797 {
798  struct ovsrec_bridge *row = ovsrec_bridge_cast(row_);
799  size_t i;
800 
802  row->protocols = NULL;
803  row->n_protocols = 0;
804  for (i = 0; i < datum->n; i++) {
805  if (!row->n_protocols) {
806  row->protocols = xmalloc(datum->n * sizeof *row->protocols);
807  }
808  row->protocols[row->n_protocols] = datum->keys[i].string;
809  row->n_protocols++;
810  }
811 }
Definition: vswitch-idl.h:73
#define ovs_assert(CONDITION)
Definition: util.h:73
char * string
Definition: ovsdb-data.h:33
union ovsdb_atom * keys
Definition: ovsdb-data.h:127
void * xmalloc(size_t size)
Definition: util.c:110
static bool inited
Definition: vswitch-idl.c:18
unsigned int n
Definition: ovsdb-data.h:126
char ** protocols
Definition: vswitch-idl.h:131
static struct ovsrec_bridge * ovsrec_bridge_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:28
size_t n_protocols
Definition: vswitch-idl.h:132
static void ovsrec_bridge_parse_rstp_enable ( struct ovsdb_idl_row row_,
const struct ovsdb_datum datum 
)
static
815 {
816  struct ovsrec_bridge *row = ovsrec_bridge_cast(row_);
817 
819  if (datum->n >= 1) {
820  row->rstp_enable = datum->keys[0].boolean;
821  } else {
822  row->rstp_enable = false;
823  }
824 }
Definition: vswitch-idl.h:73
#define ovs_assert(CONDITION)
Definition: util.h:73
union ovsdb_atom * keys
Definition: ovsdb-data.h:127
bool rstp_enable
Definition: vswitch-idl.h:135
bool boolean
Definition: ovsdb-data.h:32
static bool inited
Definition: vswitch-idl.c:18
unsigned int n
Definition: ovsdb-data.h:126
static struct ovsrec_bridge * ovsrec_bridge_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:28
static void ovsrec_bridge_parse_rstp_status ( struct ovsdb_idl_row row_,
const struct ovsdb_datum datum 
)
static
828 {
829  struct ovsrec_bridge *row = ovsrec_bridge_cast(row_);
830  size_t i;
831 
833  smap_init(&row->rstp_status);
834  for (i = 0; i < datum->n; i++) {
835  smap_add(&row->rstp_status,
836  datum->keys[i].string,
837  datum->values[i].string);
838  }
839 }
Definition: vswitch-idl.h:73
#define ovs_assert(CONDITION)
Definition: util.h:73
void smap_init(struct smap *smap)
Definition: smap.c:33
struct smap rstp_status
Definition: vswitch-idl.h:138
char * string
Definition: ovsdb-data.h:33
struct smap_node * smap_add(struct smap *smap, const char *key, const char *value)
Definition: smap.c:50
union ovsdb_atom * keys
Definition: ovsdb-data.h:127
union ovsdb_atom * values
Definition: ovsdb-data.h:128
static bool inited
Definition: vswitch-idl.c:18
unsigned int n
Definition: ovsdb-data.h:126
static struct ovsrec_bridge * ovsrec_bridge_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:28
static void ovsrec_bridge_parse_sflow ( struct ovsdb_idl_row row_,
const struct ovsdb_datum datum 
)
static
843 {
844  struct ovsrec_bridge *row = ovsrec_bridge_cast(row_);
845 
847  if (datum->n >= 1) {
849  } else {
850  row->sflow = NULL;
851  }
852 }
Definition: vswitch-idl.h:73
struct ovsdb_idl_table_class ovsrec_table_classes[OVSREC_N_TABLES]
Definition: vswitch-idl.c:21482
#define ovs_assert(CONDITION)
Definition: util.h:73
static struct ovsrec_sflow * ovsrec_sflow_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:112
struct ovsdb_idl_row * ovsdb_idl_get_row_arc(struct ovsdb_idl_row *src, struct ovsdb_idl_table_class *dst_table, const struct uuid *dst_uuid)
Definition: ovsdb-idl.c:1216
Definition: vswitch-idl.h:1929
union ovsdb_atom * keys
Definition: ovsdb-data.h:127
static bool inited
Definition: vswitch-idl.c:18
unsigned int n
Definition: ovsdb-data.h:126
struct uuid uuid
Definition: ovsdb-data.h:34
struct ovsrec_sflow * sflow
Definition: vswitch-idl.h:141
static struct ovsrec_bridge * ovsrec_bridge_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:28
static void ovsrec_bridge_parse_status ( struct ovsdb_idl_row row_,
const struct ovsdb_datum datum 
)
static
856 {
857  struct ovsrec_bridge *row = ovsrec_bridge_cast(row_);
858  size_t i;
859 
861  smap_init(&row->status);
862  for (i = 0; i < datum->n; i++) {
863  smap_add(&row->status,
864  datum->keys[i].string,
865  datum->values[i].string);
866  }
867 }
Definition: vswitch-idl.h:73
#define ovs_assert(CONDITION)
Definition: util.h:73
void smap_init(struct smap *smap)
Definition: smap.c:33
char * string
Definition: ovsdb-data.h:33
struct smap_node * smap_add(struct smap *smap, const char *key, const char *value)
Definition: smap.c:50
union ovsdb_atom * keys
Definition: ovsdb-data.h:127
union ovsdb_atom * values
Definition: ovsdb-data.h:128
struct smap status
Definition: vswitch-idl.h:144
static bool inited
Definition: vswitch-idl.c:18
unsigned int n
Definition: ovsdb-data.h:126
static struct ovsrec_bridge * ovsrec_bridge_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:28
static void ovsrec_bridge_parse_stp_enable ( struct ovsdb_idl_row row_,
const struct ovsdb_datum datum 
)
static
871 {
872  struct ovsrec_bridge *row = ovsrec_bridge_cast(row_);
873 
875  if (datum->n >= 1) {
876  row->stp_enable = datum->keys[0].boolean;
877  } else {
878  row->stp_enable = false;
879  }
880 }
Definition: vswitch-idl.h:73
#define ovs_assert(CONDITION)
Definition: util.h:73
bool stp_enable
Definition: vswitch-idl.h:147
union ovsdb_atom * keys
Definition: ovsdb-data.h:127
bool boolean
Definition: ovsdb-data.h:32
static bool inited
Definition: vswitch-idl.c:18
unsigned int n
Definition: ovsdb-data.h:126
static struct ovsrec_bridge * ovsrec_bridge_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:28
void ovsrec_bridge_set_auto_attach ( const struct ovsrec_bridge row,
const struct ovsrec_autoattach auto_attach 
)
2435 {
2436  struct ovsdb_datum datum;
2437  union ovsdb_atom key;
2438 
2439  ovs_assert(inited);
2440  if (auto_attach) {
2441  datum.n = 1;
2442  datum.keys = &key;
2443  key.uuid = auto_attach->header_.uuid;
2444  } else {
2445  datum.n = 0;
2446  datum.keys = NULL;
2447  }
2448  datum.values = NULL;
2450 }
Definition: ovsdb-data.h:125
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: ovsdb-data.h:29
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:74
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:16
static bool inited
Definition: vswitch-idl.c:18
struct ovsdb_idl_column ovsrec_bridge_columns[OVSREC_BRIDGE_N_COLUMNS]
Definition: vswitch-idl.c:2962
Definition: vswitch-idl.h:151
static struct aes128 key
Definition: uuid.c:34
struct uuid uuid
Definition: ovsdb-idl-provider.h:28
void ovsdb_idl_txn_write_clone(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column, const struct ovsdb_datum *datum)
Definition: ovsdb-idl.c:2131
void ovsrec_bridge_set_controller ( const struct ovsrec_bridge row,
struct ovsrec_controller **  controller,
size_t  n_controller 
)
2458 {
2459  struct ovsdb_datum datum;
2460  size_t i;
2461 
2462  ovs_assert(inited);
2463  datum.n = n_controller;
2464  datum.keys = n_controller ? xmalloc(n_controller * sizeof *datum.keys) : NULL;
2465  datum.values = NULL;
2466  for (i = 0; i < n_controller; i++) {
2467  datum.keys[i].uuid = controller[i]->header_.uuid;
2468  }
2471 }
Definition: ovsdb-data.h:125
#define ovs_assert(CONDITION)
Definition: util.h:73
size_t ovsdb_datum_sort_unique(struct ovsdb_datum *datum, enum ovsdb_atomic_type key_type, enum ovsdb_atomic_type value_type)
Definition: ovsdb-data.c:1089
Definition: ovsdb-types.h:34
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:74
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:289
void * xmalloc(size_t size)
Definition: util.c:110
static bool inited
Definition: vswitch-idl.c:18
Definition: ovsdb-types.h:29
struct ovsdb_idl_column ovsrec_bridge_columns[OVSREC_BRIDGE_N_COLUMNS]
Definition: vswitch-idl.c:2962
void ovsdb_idl_txn_write(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column, struct ovsdb_datum *datum)
Definition: ovsdb-idl.c:2123
struct uuid uuid
Definition: ovsdb-idl-provider.h:28
Definition: vswitch-idl.h:152
void ovsrec_bridge_set_datapath_id ( const struct ovsrec_bridge row,
const char *  datapath_id 
)
2482 {
2483  struct ovsdb_datum datum;
2484  union ovsdb_atom key;
2485 
2486  ovs_assert(inited);
2487  if (datapath_id) {
2488  datum.n = 1;
2489  datum.keys = &key;
2490  key.string = CONST_CAST(char *, datapath_id);
2491  } else {
2492  datum.n = 0;
2493  datum.keys = NULL;
2494  }
2495  datum.values = NULL;
2497 }
Definition: ovsdb-data.h:125
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: ovsdb-data.h:29
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:74
Definition: vswitch-idl.h:153
static bool inited
Definition: vswitch-idl.c:18
struct ovsdb_idl_column ovsrec_bridge_columns[OVSREC_BRIDGE_N_COLUMNS]
Definition: vswitch-idl.c:2962
#define CONST_CAST(TYPE, POINTER)
Definition: util.h:88
static struct aes128 key
Definition: uuid.c:34
void ovsdb_idl_txn_write_clone(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column, const struct ovsdb_datum *datum)
Definition: ovsdb-idl.c:2131
void ovsrec_bridge_set_datapath_type ( const struct ovsrec_bridge row,
const char *  datapath_type 
)
2505 {
2506  struct ovsdb_datum datum;
2507  union ovsdb_atom key;
2508 
2509  ovs_assert(inited);
2510  datum.n = 1;
2511  datum.keys = &key;
2512  key.string = CONST_CAST(char *, datapath_type);
2513  datum.values = NULL;
2515 }
Definition: ovsdb-data.h:125
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: ovsdb-data.h:29
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:74
static bool inited
Definition: vswitch-idl.c:18
struct ovsdb_idl_column ovsrec_bridge_columns[OVSREC_BRIDGE_N_COLUMNS]
Definition: vswitch-idl.c:2962
Definition: vswitch-idl.h:154
#define CONST_CAST(TYPE, POINTER)
Definition: util.h:88
static struct aes128 key
Definition: uuid.c:34
void ovsdb_idl_txn_write_clone(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column, const struct ovsdb_datum *datum)
Definition: ovsdb-idl.c:2131
void ovsrec_bridge_set_datapath_version ( const struct ovsrec_bridge row,
const char *  datapath_version 
)
2523 {
2524  struct ovsdb_datum datum;
2525  union ovsdb_atom key;
2526 
2527  ovs_assert(inited);
2528  datum.n = 1;
2529  datum.keys = &key;
2530  key.string = CONST_CAST(char *, datapath_version);
2531  datum.values = NULL;
2533 }
Definition: ovsdb-data.h:125
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: ovsdb-data.h:29
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:74
Definition: vswitch-idl.h:155
static bool inited
Definition: vswitch-idl.c:18
struct ovsdb_idl_column ovsrec_bridge_columns[OVSREC_BRIDGE_N_COLUMNS]
Definition: vswitch-idl.c:2962
#define CONST_CAST(TYPE, POINTER)
Definition: util.h:88
static struct aes128 key
Definition: uuid.c:34
void ovsdb_idl_txn_write_clone(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column, const struct ovsdb_datum *datum)
Definition: ovsdb-idl.c:2131
void ovsrec_bridge_set_external_ids ( const struct ovsrec_bridge row,
const struct smap external_ids 
)
2541 {
2542  struct ovsdb_datum datum;
2543 
2544  ovs_assert(inited);
2545  if (external_ids) {
2546  struct smap_node *node;
2547  size_t i;
2548 
2549  datum.n = smap_count(external_ids);
2550  datum.keys = xmalloc(datum.n * sizeof *datum.keys);
2551  datum.values = xmalloc(datum.n * sizeof *datum.values);
2552 
2553  i = 0;
2554  SMAP_FOR_EACH (node, external_ids) {
2555  datum.keys[i].string = xstrdup(node->key);
2556  datum.values[i].string = xstrdup(node->value);
2557  i++;
2558  }
2560  } else {
2561  ovsdb_datum_init_empty(&datum);
2562  }
2565  &datum);
2566 }
char * value
Definition: smap.h:31
Definition: ovsdb-data.h:125
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: ovsdb-types.h:33
size_t ovsdb_datum_sort_unique(struct ovsdb_datum *datum, enum ovsdb_atomic_type key_type, enum ovsdb_atomic_type value_type)
Definition: ovsdb-data.c:1089
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:74
#define SMAP_FOR_EACH(SMAP_NODE, SMAP)
Definition: smap.h:36
void * xmalloc(size_t size)
Definition: util.c:110
char * xstrdup(const char *s)
Definition: util.c:149
static bool inited
Definition: vswitch-idl.c:18
struct hmap_node node
Definition: smap.h:29
Definition: smap.h:28
size_t smap_count(const struct smap *smap)
Definition: smap.c:238
void ovsdb_datum_init_empty(struct ovsdb_datum *datum)
Definition: ovsdb-data.c:835
struct ovsdb_idl_column ovsrec_bridge_columns[OVSREC_BRIDGE_N_COLUMNS]
Definition: vswitch-idl.c:2962
void ovsdb_idl_txn_write(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column, struct ovsdb_datum *datum)
Definition: ovsdb-idl.c:2123
char * key
Definition: smap.h:30
Definition: vswitch-idl.h:156
void ovsrec_bridge_set_fail_mode ( const struct ovsrec_bridge row,
const char *  fail_mode 
)
2580 {
2581  struct ovsdb_datum datum;
2582  union ovsdb_atom key;
2583 
2584  ovs_assert(inited);
2585  if (fail_mode) {
2586  datum.n = 1;
2587  datum.keys = &key;
2588  key.string = CONST_CAST(char *, fail_mode);
2589  } else {
2590  datum.n = 0;
2591  datum.keys = NULL;
2592  }
2593  datum.values = NULL;
2595 }
Definition: ovsdb-data.h:125
Definition: vswitch-idl.h:157
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: ovsdb-data.h:29
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:74
static bool inited
Definition: vswitch-idl.c:18
struct ovsdb_idl_column ovsrec_bridge_columns[OVSREC_BRIDGE_N_COLUMNS]
Definition: vswitch-idl.c:2962
#define CONST_CAST(TYPE, POINTER)
Definition: util.h:88
static struct aes128 key
Definition: uuid.c:34
void ovsdb_idl_txn_write_clone(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column, const struct ovsdb_datum *datum)
Definition: ovsdb-idl.c:2131
void ovsrec_bridge_set_flood_vlans ( const struct ovsrec_bridge row,
const int64_t flood_vlans,
size_t  n_flood_vlans 
)
2605 {
2606  struct ovsdb_datum datum;
2607  size_t i;
2608 
2609  ovs_assert(inited);
2610  datum.n = n_flood_vlans;
2611  datum.keys = n_flood_vlans ? xmalloc(n_flood_vlans * sizeof *datum.keys) : NULL;
2612  datum.values = NULL;
2613  for (i = 0; i < n_flood_vlans; i++) {
2614  datum.keys[i].integer = flood_vlans[i];
2615  }
2618 }
Definition: ovsdb-data.h:125
#define ovs_assert(CONDITION)
Definition: util.h:73
size_t ovsdb_datum_sort_unique(struct ovsdb_datum *datum, enum ovsdb_atomic_type key_type, enum ovsdb_atomic_type value_type)
Definition: ovsdb-data.c:1089
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:74
Definition: ovsdb-types.h:30
void * xmalloc(size_t size)
Definition: util.c:110
static bool inited
Definition: vswitch-idl.c:18
Definition: ovsdb-types.h:29
Definition: vswitch-idl.h:158
struct ovsdb_idl_column ovsrec_bridge_columns[OVSREC_BRIDGE_N_COLUMNS]
Definition: vswitch-idl.c:2962
void ovsdb_idl_txn_write(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column, struct ovsdb_datum *datum)
Definition: ovsdb-idl.c:2123
void ovsrec_bridge_set_flow_tables ( const struct ovsrec_bridge row,
const int64_t key_flow_tables,
struct ovsrec_flow_table **  value_flow_tables,
size_t  n_flow_tables 
)
2629 {
2630  struct ovsdb_datum datum;
2631  size_t i;
2632 
2633  ovs_assert(inited);
2634  datum.n = n_flow_tables;
2635  datum.keys = n_flow_tables ? xmalloc(n_flow_tables * sizeof *datum.keys) : NULL;
2636  datum.values = xmalloc(n_flow_tables * sizeof *datum.values);
2637  for (i = 0; i < n_flow_tables; i++) {
2638  datum.keys[i].integer = key_flow_tables[i];
2639  datum.values[i].uuid = value_flow_tables[i]->header_.uuid;
2640  }
2643 }
Definition: ovsdb-data.h:125
#define ovs_assert(CONDITION)
Definition: util.h:73
size_t ovsdb_datum_sort_unique(struct ovsdb_datum *datum, enum ovsdb_atomic_type key_type, enum ovsdb_atomic_type value_type)
Definition: ovsdb-data.c:1089
Definition: ovsdb-types.h:34
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:74
Definition: ovsdb-types.h:30
void * xmalloc(size_t size)
Definition: util.c:110
static bool inited
Definition: vswitch-idl.c:18
Definition: vswitch-idl.h:159
struct ovsdb_idl_column ovsrec_bridge_columns[OVSREC_BRIDGE_N_COLUMNS]
Definition: vswitch-idl.c:2962
void ovsdb_idl_txn_write(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column, struct ovsdb_datum *datum)
Definition: ovsdb-idl.c:2123
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:510
struct uuid uuid
Definition: ovsdb-idl-provider.h:28
void ovsrec_bridge_set_ipfix ( const struct ovsrec_bridge row,
const struct ovsrec_ipfix ipfix 
)
2654 {
2655  struct ovsdb_datum datum;
2656  union ovsdb_atom key;
2657 
2658  ovs_assert(inited);
2659  if (ipfix) {
2660  datum.n = 1;
2661  datum.keys = &key;
2662  key.uuid = ipfix->header_.uuid;
2663  } else {
2664  datum.n = 0;
2665  datum.keys = NULL;
2666  }
2667  datum.values = NULL;
2669 }
Definition: ovsdb-data.h:125
#define ovs_assert(CONDITION)
Definition: util.h:73
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:593
Definition: ovsdb-data.h:29
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:74
static bool inited
Definition: vswitch-idl.c:18
Definition: vswitch-idl.h:160
struct ovsdb_idl_column ovsrec_bridge_columns[OVSREC_BRIDGE_N_COLUMNS]
Definition: vswitch-idl.c:2962
static struct aes128 key
Definition: uuid.c:34
struct uuid uuid
Definition: ovsdb-idl-provider.h:28
void ovsdb_idl_txn_write_clone(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column, const struct ovsdb_datum *datum)
Definition: ovsdb-idl.c:2131
void ovsrec_bridge_set_mcast_snooping_enable ( const struct ovsrec_bridge row,
bool  mcast_snooping_enable 
)
2677 {
2678  struct ovsdb_datum datum;
2679  union ovsdb_atom key;
2680 
2681  ovs_assert(inited);
2682  datum.n = 1;
2683  datum.keys = &key;
2684  key.boolean = mcast_snooping_enable;
2685  datum.values = NULL;
2687 }
Definition: ovsdb-data.h:125
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: ovsdb-data.h:29
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:74
static bool inited
Definition: vswitch-idl.c:18
struct ovsdb_idl_column ovsrec_bridge_columns[OVSREC_BRIDGE_N_COLUMNS]
Definition: vswitch-idl.c:2962
Definition: vswitch-idl.h:161
static struct aes128 key
Definition: uuid.c:34
void ovsdb_idl_txn_write_clone(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column, const struct ovsdb_datum *datum)
Definition: ovsdb-idl.c:2131
void ovsrec_bridge_set_mirrors ( const struct ovsrec_bridge row,
struct ovsrec_mirror **  mirrors,
size_t  n_mirrors 
)
2695 {
2696  struct ovsdb_datum datum;
2697  size_t i;
2698 
2699  ovs_assert(inited);
2700  datum.n = n_mirrors;
2701  datum.keys = n_mirrors ? xmalloc(n_mirrors * sizeof *datum.keys) : NULL;
2702  datum.values = NULL;
2703  for (i = 0; i < n_mirrors; i++) {
2704  datum.keys[i].uuid = mirrors[i]->header_.uuid;
2705  }
2708 }
Definition: ovsdb-data.h:125
#define ovs_assert(CONDITION)
Definition: util.h:73
size_t ovsdb_datum_sort_unique(struct ovsdb_datum *datum, enum ovsdb_atomic_type key_type, enum ovsdb_atomic_type value_type)
Definition: ovsdb-data.c:1089
Definition: ovsdb-types.h:34
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:74
void * xmalloc(size_t size)
Definition: util.c:110
static bool inited
Definition: vswitch-idl.c:18
Definition: vswitch-idl.h:162
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:1096
Definition: ovsdb-types.h:29
struct ovsdb_idl_column ovsrec_bridge_columns[OVSREC_BRIDGE_N_COLUMNS]
Definition: vswitch-idl.c:2962
void ovsdb_idl_txn_write(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column, struct ovsdb_datum *datum)
Definition: ovsdb-idl.c:2123
struct uuid uuid
Definition: ovsdb-idl-provider.h:28
void ovsrec_bridge_set_name ( const struct ovsrec_bridge row,
const char *  name 
)
2716 {
2717  struct ovsdb_datum datum;
2718  union ovsdb_atom key;
2719 
2720  ovs_assert(inited);
2721  datum.n = 1;
2722  datum.keys = &key;
2723  key.string = CONST_CAST(char *, name);
2724  datum.values = NULL;
2726 }
Definition: ovsdb-data.h:125
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: ovsdb-data.h:29
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:74
static bool inited
Definition: vswitch-idl.c:18
Definition: vswitch-idl.h:163
struct ovsdb_idl_column ovsrec_bridge_columns[OVSREC_BRIDGE_N_COLUMNS]
Definition: vswitch-idl.c:2962
string name
Definition: setup.py:30
#define CONST_CAST(TYPE, POINTER)
Definition: util.h:88
static struct aes128 key
Definition: uuid.c:34
void ovsdb_idl_txn_write_clone(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column, const struct ovsdb_datum *datum)
Definition: ovsdb-idl.c:2131
void ovsrec_bridge_set_netflow ( const struct ovsrec_bridge row,
const struct ovsrec_netflow netflow 
)
2737 {
2738  struct ovsdb_datum datum;
2739  union ovsdb_atom key;
2740 
2741  ovs_assert(inited);
2742  if (netflow) {
2743  datum.n = 1;
2744  datum.keys = &key;
2745  key.uuid = netflow->header_.uuid;
2746  } else {
2747  datum.n = 0;
2748  datum.keys = NULL;
2749  }
2750  datum.values = NULL;
2752 }
Definition: ovsdb-data.h:125
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: ovsdb-data.h:29
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:1206
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:74
static bool inited
Definition: vswitch-idl.c:18
Definition: vswitch-idl.h:164
struct ovsdb_idl_column ovsrec_bridge_columns[OVSREC_BRIDGE_N_COLUMNS]
Definition: vswitch-idl.c:2962
static struct aes128 key
Definition: uuid.c:34
struct uuid uuid
Definition: ovsdb-idl-provider.h:28
void ovsdb_idl_txn_write_clone(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column, const struct ovsdb_datum *datum)
Definition: ovsdb-idl.c:2131
void ovsrec_bridge_set_other_config ( const struct ovsrec_bridge row,
const struct smap other_config 
)
2760 {
2761  struct ovsdb_datum datum;
2762 
2763  ovs_assert(inited);
2764  if (other_config) {
2765  struct smap_node *node;
2766  size_t i;
2767 
2768  datum.n = smap_count(other_config);
2769  datum.keys = xmalloc(datum.n * sizeof *datum.keys);
2770  datum.values = xmalloc(datum.n * sizeof *datum.values);
2771 
2772  i = 0;
2773  SMAP_FOR_EACH (node, other_config) {
2774  datum.keys[i].string = xstrdup(node->key);
2775  datum.values[i].string = xstrdup(node->value);
2776  i++;
2777  }
2779  } else {
2780  ovsdb_datum_init_empty(&datum);
2781  }
2784  &datum);
2785 }
char * value
Definition: smap.h:31
Definition: ovsdb-data.h:125
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: ovsdb-types.h:33
size_t ovsdb_datum_sort_unique(struct ovsdb_datum *datum, enum ovsdb_atomic_type key_type, enum ovsdb_atomic_type value_type)
Definition: ovsdb-data.c:1089
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:74
#define SMAP_FOR_EACH(SMAP_NODE, SMAP)
Definition: smap.h:36
void * xmalloc(size_t size)
Definition: util.c:110
char * xstrdup(const char *s)
Definition: util.c:149
static bool inited
Definition: vswitch-idl.c:18
struct hmap_node node
Definition: smap.h:29
Definition: smap.h:28
size_t smap_count(const struct smap *smap)
Definition: smap.c:238
Definition: vswitch-idl.h:165
void ovsdb_datum_init_empty(struct ovsdb_datum *datum)
Definition: ovsdb-data.c:835
struct ovsdb_idl_column ovsrec_bridge_columns[OVSREC_BRIDGE_N_COLUMNS]
Definition: vswitch-idl.c:2962
void ovsdb_idl_txn_write(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column, struct ovsdb_datum *datum)
Definition: ovsdb-idl.c:2123
char * key
Definition: smap.h:30
void ovsrec_bridge_set_ports ( const struct ovsrec_bridge row,
struct ovsrec_port **  ports,
size_t  n_ports 
)
2794 {
2795  struct ovsdb_datum datum;
2796  size_t i;
2797 
2798  ovs_assert(inited);
2799  datum.n = n_ports;
2800  datum.keys = n_ports ? xmalloc(n_ports * sizeof *datum.keys) : NULL;
2801  datum.values = NULL;
2802  for (i = 0; i < n_ports; i++) {
2803  datum.keys[i].uuid = ports[i]->header_.uuid;
2804  }
2807 }
Definition: ovsdb-data.h:125
#define ovs_assert(CONDITION)
Definition: util.h:73
size_t ovsdb_datum_sort_unique(struct ovsdb_datum *datum, enum ovsdb_atomic_type key_type, enum ovsdb_atomic_type value_type)
Definition: ovsdb-data.c:1089
Definition: ovsdb-types.h:34
Definition: vswitch-idl.h:166
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:74
void * xmalloc(size_t size)
Definition: util.c:110
static bool inited
Definition: vswitch-idl.c:18
Definition: ovsdb-types.h:29
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:1437
struct ovsdb_idl_column ovsrec_bridge_columns[OVSREC_BRIDGE_N_COLUMNS]
Definition: vswitch-idl.c:2962
void ovsdb_idl_txn_write(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column, struct ovsdb_datum *datum)
Definition: ovsdb-idl.c:2123
struct uuid uuid
Definition: ovsdb-idl-provider.h:28
void ovsrec_bridge_set_protocols ( const struct ovsrec_bridge row,
const char **  protocols,
size_t  n_protocols 
)
2817 {
2818  struct ovsdb_datum datum;
2819  size_t i;
2820 
2821  ovs_assert(inited);
2822  datum.n = n_protocols;
2823  datum.keys = n_protocols ? xmalloc(n_protocols * sizeof *datum.keys) : NULL;
2824  datum.values = NULL;
2825  for (i = 0; i < n_protocols; i++) {
2826  datum.keys[i].string = xstrdup(protocols[i]);
2827  }
2830 }
Definition: ovsdb-data.h:125
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: ovsdb-types.h:33
size_t ovsdb_datum_sort_unique(struct ovsdb_datum *datum, enum ovsdb_atomic_type key_type, enum ovsdb_atomic_type value_type)
Definition: ovsdb-data.c:1089
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:74
void * xmalloc(size_t size)
Definition: util.c:110
char * xstrdup(const char *s)
Definition: util.c:149
static bool inited
Definition: vswitch-idl.c:18
Definition: ovsdb-types.h:29
Definition: vswitch-idl.h:167
struct ovsdb_idl_column ovsrec_bridge_columns[OVSREC_BRIDGE_N_COLUMNS]
Definition: vswitch-idl.c:2962
void ovsdb_idl_txn_write(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column, struct ovsdb_datum *datum)
Definition: ovsdb-idl.c:2123
void ovsrec_bridge_set_rstp_enable ( const struct ovsrec_bridge row,
bool  rstp_enable 
)
2838 {
2839  struct ovsdb_datum datum;
2840  union ovsdb_atom key;
2841 
2842  ovs_assert(inited);
2843  datum.n = 1;
2844  datum.keys = &key;
2845  key.boolean = rstp_enable;
2846  datum.values = NULL;
2848 }
Definition: ovsdb-data.h:125
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: ovsdb-data.h:29
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:74
Definition: vswitch-idl.h:168
static bool inited
Definition: vswitch-idl.c:18
struct ovsdb_idl_column ovsrec_bridge_columns[OVSREC_BRIDGE_N_COLUMNS]
Definition: vswitch-idl.c:2962
static struct aes128 key
Definition: uuid.c:34
void ovsdb_idl_txn_write_clone(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column, const struct ovsdb_datum *datum)
Definition: ovsdb-idl.c:2131
void ovsrec_bridge_set_rstp_status ( const struct ovsrec_bridge row,
const struct smap rstp_status 
)
2856 {
2857  struct ovsdb_datum datum;
2858 
2859  ovs_assert(inited);
2860  if (rstp_status) {
2861  struct smap_node *node;
2862  size_t i;
2863 
2864  datum.n = smap_count(rstp_status);
2865  datum.keys = xmalloc(datum.n * sizeof *datum.keys);
2866  datum.values = xmalloc(datum.n * sizeof *datum.values);
2867 
2868  i = 0;
2869  SMAP_FOR_EACH (node, rstp_status) {
2870  datum.keys[i].string = xstrdup(node->key);
2871  datum.values[i].string = xstrdup(node->value);
2872  i++;
2873  }
2875  } else {
2876  ovsdb_datum_init_empty(&datum);
2877  }
2880  &datum);
2881 }
char * value
Definition: smap.h:31
Definition: ovsdb-data.h:125
Definition: vswitch-idl.h:169
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: ovsdb-types.h:33
size_t ovsdb_datum_sort_unique(struct ovsdb_datum *datum, enum ovsdb_atomic_type key_type, enum ovsdb_atomic_type value_type)
Definition: ovsdb-data.c:1089
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:74
#define SMAP_FOR_EACH(SMAP_NODE, SMAP)
Definition: smap.h:36
void * xmalloc(size_t size)
Definition: util.c:110
char * xstrdup(const char *s)
Definition: util.c:149
static bool inited
Definition: vswitch-idl.c:18
struct hmap_node node
Definition: smap.h:29
Definition: smap.h:28
size_t smap_count(const struct smap *smap)
Definition: smap.c:238
void ovsdb_datum_init_empty(struct ovsdb_datum *datum)
Definition: ovsdb-data.c:835
struct ovsdb_idl_column ovsrec_bridge_columns[OVSREC_BRIDGE_N_COLUMNS]
Definition: vswitch-idl.c:2962
void ovsdb_idl_txn_write(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column, struct ovsdb_datum *datum)
Definition: ovsdb-idl.c:2123
char * key
Definition: smap.h:30
void ovsrec_bridge_set_sflow ( const struct ovsrec_bridge row,
const struct ovsrec_sflow sflow 
)
2893 {
2894  struct ovsdb_datum datum;
2895  union ovsdb_atom key;
2896 
2897  ovs_assert(inited);
2898  if (sflow) {
2899  datum.n = 1;
2900  datum.keys = &key;
2901  key.uuid = sflow->header_.uuid;
2902  } else {
2903  datum.n = 0;
2904  datum.keys = NULL;
2905  }
2906  datum.values = NULL;
2908 }
Definition: ovsdb-data.h:125
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: ovsdb-data.h:29
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:74
Definition: vswitch-idl.h:170
static bool inited
Definition: vswitch-idl.c:18
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:1831
struct ovsdb_idl_column ovsrec_bridge_columns[OVSREC_BRIDGE_N_COLUMNS]
Definition: vswitch-idl.c:2962
static struct aes128 key
Definition: uuid.c:34
struct uuid uuid
Definition: ovsdb-idl-provider.h:28
void ovsdb_idl_txn_write_clone(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column, const struct ovsdb_datum *datum)
Definition: ovsdb-idl.c:2131
void ovsrec_bridge_set_status ( const struct ovsrec_bridge row,
const struct smap status 
)
2916 {
2917  struct ovsdb_datum datum;
2918 
2919  ovs_assert(inited);
2920  if (status) {
2921  struct smap_node *node;
2922  size_t i;
2923 
2924  datum.n = smap_count(status);
2925  datum.keys = xmalloc(datum.n * sizeof *datum.keys);
2926  datum.values = xmalloc(datum.n * sizeof *datum.values);
2927 
2928  i = 0;
2929  SMAP_FOR_EACH (node, status) {
2930  datum.keys[i].string = xstrdup(node->key);
2931  datum.values[i].string = xstrdup(node->value);
2932  i++;
2933  }
2935  } else {
2936  ovsdb_datum_init_empty(&datum);
2937  }
2940  &datum);
2941 }
char * value
Definition: smap.h:31
Definition: ovsdb-data.h:125
Definition: vswitch-idl.h:171
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: ovsdb-types.h:33
size_t ovsdb_datum_sort_unique(struct ovsdb_datum *datum, enum ovsdb_atomic_type key_type, enum ovsdb_atomic_type value_type)
Definition: ovsdb-data.c:1089
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:74
#define SMAP_FOR_EACH(SMAP_NODE, SMAP)
Definition: smap.h:36
void * xmalloc(size_t size)
Definition: util.c:110
char * xstrdup(const char *s)
Definition: util.c:149
static bool inited
Definition: vswitch-idl.c:18
struct hmap_node node
Definition: smap.h:29
Definition: smap.h:28
size_t smap_count(const struct smap *smap)
Definition: smap.c:238
void ovsdb_datum_init_empty(struct ovsdb_datum *datum)
Definition: ovsdb-data.c:835
struct ovsdb_idl_column ovsrec_bridge_columns[OVSREC_BRIDGE_N_COLUMNS]
Definition: vswitch-idl.c:2962
void ovsdb_idl_txn_write(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column, struct ovsdb_datum *datum)
Definition: ovsdb-idl.c:2123
char * key
Definition: smap.h:30
void ovsrec_bridge_set_stp_enable ( const struct ovsrec_bridge row,
bool  stp_enable 
)
2950 {
2951  struct ovsdb_datum datum;
2952  union ovsdb_atom key;
2953 
2954  ovs_assert(inited);
2955  datum.n = 1;
2956  datum.keys = &key;
2957  key.boolean = stp_enable;
2958  datum.values = NULL;
2960 }
Definition: ovsdb-data.h:125
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: ovsdb-data.h:29
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:74
static bool inited
Definition: vswitch-idl.c:18
Definition: vswitch-idl.h:172
struct ovsdb_idl_column ovsrec_bridge_columns[OVSREC_BRIDGE_N_COLUMNS]
Definition: vswitch-idl.c:2962
static struct aes128 key
Definition: uuid.c:34
void ovsdb_idl_txn_write_clone(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column, const struct ovsdb_datum *datum)
Definition: ovsdb-idl.c:2131
static void ovsrec_bridge_unparse_auto_attach ( struct ovsdb_idl_row *row  OVS_UNUSED)
static
884 {
885  /* Nothing to do. */
886 }
static void ovsrec_bridge_unparse_controller ( struct ovsdb_idl_row row_)
static
890 {
891  struct ovsrec_bridge *row = ovsrec_bridge_cast(row_);
892 
894  free(row->controller);
895 }
Definition: vswitch-idl.h:73
#define ovs_assert(CONDITION)
Definition: util.h:73
static bool inited
Definition: vswitch-idl.c:18
struct ovsrec_controller ** controller
Definition: vswitch-idl.h:80
static struct ovsrec_bridge * ovsrec_bridge_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:28
static void ovsrec_bridge_unparse_datapath_id ( struct ovsdb_idl_row *row  OVS_UNUSED)
static
899 {
900  /* Nothing to do. */
901 }
static void ovsrec_bridge_unparse_datapath_type ( struct ovsdb_idl_row *row  OVS_UNUSED)
static
905 {
906  /* Nothing to do. */
907 }
static void ovsrec_bridge_unparse_datapath_version ( struct ovsdb_idl_row *row  OVS_UNUSED)
static
911 {
912  /* Nothing to do. */
913 }
static void ovsrec_bridge_unparse_external_ids ( struct ovsdb_idl_row row_)
static
917 {
918  struct ovsrec_bridge *row = ovsrec_bridge_cast(row_);
919 
921  smap_destroy(&row->external_ids);
922 }
Definition: vswitch-idl.h:73
#define ovs_assert(CONDITION)
Definition: util.h:73
struct smap external_ids
Definition: vswitch-idl.h:93
static bool inited
Definition: vswitch-idl.c:18
void smap_destroy(struct smap *smap)
Definition: smap.c:39
static struct ovsrec_bridge * ovsrec_bridge_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:28
static void ovsrec_bridge_unparse_fail_mode ( struct ovsdb_idl_row *row  OVS_UNUSED)
static
926 {
927  /* Nothing to do. */
928 }
static void ovsrec_bridge_unparse_flood_vlans ( struct ovsdb_idl_row row_)
static
932 {
933  struct ovsrec_bridge *row = ovsrec_bridge_cast(row_);
934 
936  free(row->flood_vlans);
937 }
Definition: vswitch-idl.h:73
#define ovs_assert(CONDITION)
Definition: util.h:73
static bool inited
Definition: vswitch-idl.c:18
int64_t * flood_vlans
Definition: vswitch-idl.h:99
static struct ovsrec_bridge * ovsrec_bridge_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:28
static void ovsrec_bridge_unparse_flow_tables ( struct ovsdb_idl_row row_)
static
941 {
942  struct ovsrec_bridge *row = ovsrec_bridge_cast(row_);
943 
945  free(row->key_flow_tables);
946  free(row->value_flow_tables);
947 }
struct ovsrec_flow_table ** value_flow_tables
Definition: vswitch-idl.h:104
Definition: vswitch-idl.h:73
#define ovs_assert(CONDITION)
Definition: util.h:73
static bool inited
Definition: vswitch-idl.c:18
static struct ovsrec_bridge * ovsrec_bridge_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:28
int64_t * key_flow_tables
Definition: vswitch-idl.h:103
static void ovsrec_bridge_unparse_ipfix ( struct ovsdb_idl_row *row  OVS_UNUSED)
static
951 {
952  /* Nothing to do. */
953 }
static void ovsrec_bridge_unparse_mcast_snooping_enable ( struct ovsdb_idl_row *row  OVS_UNUSED)
static
957 {
958  /* Nothing to do. */
959 }
static void ovsrec_bridge_unparse_mirrors ( struct ovsdb_idl_row row_)
static
963 {
964  struct ovsrec_bridge *row = ovsrec_bridge_cast(row_);
965 
967  free(row->mirrors);
968 }
Definition: vswitch-idl.h:73
#define ovs_assert(CONDITION)
Definition: util.h:73
static bool inited
Definition: vswitch-idl.c:18
struct ovsrec_mirror ** mirrors
Definition: vswitch-idl.h:114
static struct ovsrec_bridge * ovsrec_bridge_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:28
static void ovsrec_bridge_unparse_name ( struct ovsdb_idl_row *row  OVS_UNUSED)
static
972 {
973  /* Nothing to do. */
974 }
static void ovsrec_bridge_unparse_netflow ( struct ovsdb_idl_row *row  OVS_UNUSED)
static
978 {
979  /* Nothing to do. */
980 }
static void ovsrec_bridge_unparse_other_config ( struct ovsdb_idl_row row_)
static
984 {
985  struct ovsrec_bridge *row = ovsrec_bridge_cast(row_);
986 
988  smap_destroy(&row->other_config);
989 }
Definition: vswitch-idl.h:73
#define ovs_assert(CONDITION)
Definition: util.h:73
static bool inited
Definition: vswitch-idl.c:18
struct smap other_config
Definition: vswitch-idl.h:124
void smap_destroy(struct smap *smap)
Definition: smap.c:39
static struct ovsrec_bridge * ovsrec_bridge_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:28
static void ovsrec_bridge_unparse_ports ( struct ovsdb_idl_row row_)
static
993 {
994  struct ovsrec_bridge *row = ovsrec_bridge_cast(row_);
995 
997  free(row->ports);
998 }
Definition: vswitch-idl.h:73
#define ovs_assert(CONDITION)
Definition: util.h:73
static bool inited
Definition: vswitch-idl.c:18
struct ovsrec_port ** ports
Definition: vswitch-idl.h:127
static struct ovsrec_bridge * ovsrec_bridge_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:28
static void ovsrec_bridge_unparse_protocols ( struct ovsdb_idl_row row_)
static
1002 {
1003  struct ovsrec_bridge *row = ovsrec_bridge_cast(row_);
1004 
1005  ovs_assert(inited);
1006  free(row->protocols);
1007 }
Definition: vswitch-idl.h:73
#define ovs_assert(CONDITION)
Definition: util.h:73
static bool inited
Definition: vswitch-idl.c:18
char ** protocols
Definition: vswitch-idl.h:131
static struct ovsrec_bridge * ovsrec_bridge_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:28
static void ovsrec_bridge_unparse_rstp_enable ( struct ovsdb_idl_row *row  OVS_UNUSED)
static
1011 {
1012  /* Nothing to do. */
1013 }
static void ovsrec_bridge_unparse_rstp_status ( struct ovsdb_idl_row row_)
static
1017 {
1018  struct ovsrec_bridge *row = ovsrec_bridge_cast(row_);
1019 
1020  ovs_assert(inited);
1021  smap_destroy(&row->rstp_status);
1022 }
Definition: vswitch-idl.h:73
#define ovs_assert(CONDITION)
Definition: util.h:73
struct smap rstp_status
Definition: vswitch-idl.h:138
static bool inited
Definition: vswitch-idl.c:18
void smap_destroy(struct smap *smap)
Definition: smap.c:39
static struct ovsrec_bridge * ovsrec_bridge_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:28
static void ovsrec_bridge_unparse_sflow ( struct ovsdb_idl_row *row  OVS_UNUSED)
static
1026 {
1027  /* Nothing to do. */
1028 }
static void ovsrec_bridge_unparse_status ( struct ovsdb_idl_row row_)
static
1032 {
1033  struct ovsrec_bridge *row = ovsrec_bridge_cast(row_);
1034 
1035  ovs_assert(inited);
1036  smap_destroy(&row->status);
1037 }
Definition: vswitch-idl.h:73
#define ovs_assert(CONDITION)
Definition: util.h:73
struct smap status
Definition: vswitch-idl.h:144
static bool inited
Definition: vswitch-idl.c:18
void smap_destroy(struct smap *smap)
Definition: smap.c:39
static struct ovsrec_bridge * ovsrec_bridge_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:28
static void ovsrec_bridge_unparse_stp_enable ( struct ovsdb_idl_row *row  OVS_UNUSED)
static
1041 {
1042  /* Nothing to do. */
1043 }
void ovsrec_bridge_verify_auto_attach ( const struct ovsrec_bridge row)
1140 {
1141  ovs_assert(inited);
1143 }
#define ovs_assert(CONDITION)
Definition: util.h:73
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:74
static bool inited
Definition: vswitch-idl.c:18
void ovsdb_idl_txn_verify(const struct ovsdb_idl_row *, const struct ovsdb_idl_column *)
Definition: ovsdb-idl.c:2168
struct ovsdb_idl_column ovsrec_bridge_columns[OVSREC_BRIDGE_N_COLUMNS]
Definition: vswitch-idl.c:2962
Definition: vswitch-idl.h:151
void ovsrec_bridge_verify_controller ( const struct ovsrec_bridge row)
1172 {
1173  ovs_assert(inited);
1175 }
#define ovs_assert(CONDITION)
Definition: util.h:73
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:74
static bool inited
Definition: vswitch-idl.c:18
void ovsdb_idl_txn_verify(const struct ovsdb_idl_row *, const struct ovsdb_idl_column *)
Definition: ovsdb-idl.c:2168
struct ovsdb_idl_column ovsrec_bridge_columns[OVSREC_BRIDGE_N_COLUMNS]
Definition: vswitch-idl.c:2962
Definition: vswitch-idl.h:152
void ovsrec_bridge_verify_datapath_id ( const struct ovsrec_bridge row)
1204 {
1205  ovs_assert(inited);
1207 }
#define ovs_assert(CONDITION)
Definition: util.h:73
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:74
Definition: vswitch-idl.h:153
static bool inited
Definition: vswitch-idl.c:18
void ovsdb_idl_txn_verify(const struct ovsdb_idl_row *, const struct ovsdb_idl_column *)
Definition: ovsdb-idl.c:2168
struct ovsdb_idl_column ovsrec_bridge_columns[OVSREC_BRIDGE_N_COLUMNS]
Definition: vswitch-idl.c:2962
void ovsrec_bridge_verify_datapath_type ( const struct ovsrec_bridge row)
1236 {
1237  ovs_assert(inited);
1239 }
#define ovs_assert(CONDITION)
Definition: util.h:73
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:74
static bool inited
Definition: vswitch-idl.c:18
void ovsdb_idl_txn_verify(const struct ovsdb_idl_row *, const struct ovsdb_idl_column *)
Definition: ovsdb-idl.c:2168
struct ovsdb_idl_column ovsrec_bridge_columns[OVSREC_BRIDGE_N_COLUMNS]
Definition: vswitch-idl.c:2962
Definition: vswitch-idl.h:154
void ovsrec_bridge_verify_datapath_version ( const struct ovsrec_bridge row)
1268 {
1269  ovs_assert(inited);
1271 }
#define ovs_assert(CONDITION)
Definition: util.h:73
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:74
Definition: vswitch-idl.h:155
static bool inited
Definition: vswitch-idl.c:18
void ovsdb_idl_txn_verify(const struct ovsdb_idl_row *, const struct ovsdb_idl_column *)
Definition: ovsdb-idl.c:2168
struct ovsdb_idl_column ovsrec_bridge_columns[OVSREC_BRIDGE_N_COLUMNS]
Definition: vswitch-idl.c:2962
void ovsrec_bridge_verify_external_ids ( const struct ovsrec_bridge row)
1300 {
1301  ovs_assert(inited);
1303 }
#define ovs_assert(CONDITION)
Definition: util.h:73
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:74
static bool inited
Definition: vswitch-idl.c:18
void ovsdb_idl_txn_verify(const struct ovsdb_idl_row *, const struct ovsdb_idl_column *)
Definition: ovsdb-idl.c:2168
struct ovsdb_idl_column ovsrec_bridge_columns[OVSREC_BRIDGE_N_COLUMNS]
Definition: vswitch-idl.c:2962
Definition: vswitch-idl.h:156
void ovsrec_bridge_verify_fail_mode ( const struct ovsrec_bridge row)
1332 {
1333  ovs_assert(inited);
1335 }
Definition: vswitch-idl.h:157
#define ovs_assert(CONDITION)
Definition: util.h:73
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:74
static bool inited
Definition: vswitch-idl.c:18
void ovsdb_idl_txn_verify(const struct ovsdb_idl_row *, const struct ovsdb_idl_column *)
Definition: ovsdb-idl.c:2168
struct ovsdb_idl_column ovsrec_bridge_columns[OVSREC_BRIDGE_N_COLUMNS]
Definition: vswitch-idl.c:2962
void ovsrec_bridge_verify_flood_vlans ( const struct ovsrec_bridge row)
1364 {
1365  ovs_assert(inited);
1367 }
#define ovs_assert(CONDITION)
Definition: util.h:73
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:74
static bool inited
Definition: vswitch-idl.c:18
Definition: vswitch-idl.h:158
void ovsdb_idl_txn_verify(const struct ovsdb_idl_row *, const struct ovsdb_idl_column *)
Definition: ovsdb-idl.c:2168
struct ovsdb_idl_column ovsrec_bridge_columns[OVSREC_BRIDGE_N_COLUMNS]
Definition: vswitch-idl.c:2962
void ovsrec_bridge_verify_flow_tables ( const struct ovsrec_bridge row)
1396 {
1397  ovs_assert(inited);
1399 }
#define ovs_assert(CONDITION)
Definition: util.h:73
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:74
static bool inited
Definition: vswitch-idl.c:18
Definition: vswitch-idl.h:159
void ovsdb_idl_txn_verify(const struct ovsdb_idl_row *, const struct ovsdb_idl_column *)
Definition: ovsdb-idl.c:2168
struct ovsdb_idl_column ovsrec_bridge_columns[OVSREC_BRIDGE_N_COLUMNS]
Definition: vswitch-idl.c:2962
void ovsrec_bridge_verify_ipfix ( const struct ovsrec_bridge row)
1428 {
1429  ovs_assert(inited);
1431 }
#define ovs_assert(CONDITION)
Definition: util.h:73
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:74
static bool inited
Definition: vswitch-idl.c:18
Definition: vswitch-idl.h:160
void ovsdb_idl_txn_verify(const struct ovsdb_idl_row *, const struct ovsdb_idl_column *)
Definition: ovsdb-idl.c:2168
struct ovsdb_idl_column ovsrec_bridge_columns[OVSREC_BRIDGE_N_COLUMNS]
Definition: vswitch-idl.c:2962
void ovsrec_bridge_verify_mcast_snooping_enable ( const struct ovsrec_bridge row)
1460 {
1461  ovs_assert(inited);
1463 }
#define ovs_assert(CONDITION)
Definition: util.h:73
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:74
static bool inited
Definition: vswitch-idl.c:18
void ovsdb_idl_txn_verify(const struct ovsdb_idl_row *, const struct ovsdb_idl_column *)
Definition: ovsdb-idl.c:2168
struct ovsdb_idl_column ovsrec_bridge_columns[OVSREC_BRIDGE_N_COLUMNS]
Definition: vswitch-idl.c:2962
Definition: vswitch-idl.h:161
void ovsrec_bridge_verify_mirrors ( const struct ovsrec_bridge row)
1492 {
1493  ovs_assert(inited);
1495 }
#define ovs_assert(CONDITION)
Definition: util.h:73
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:74
static bool inited
Definition: vswitch-idl.c:18
Definition: vswitch-idl.h:162
void ovsdb_idl_txn_verify(const struct ovsdb_idl_row *, const struct ovsdb_idl_column *)
Definition: ovsdb-idl.c:2168
struct ovsdb_idl_column ovsrec_bridge_columns[OVSREC_BRIDGE_N_COLUMNS]
Definition: vswitch-idl.c:2962
void ovsrec_bridge_verify_name ( const struct ovsrec_bridge row)
1524 {
1525  ovs_assert(inited);
1527 }
#define ovs_assert(CONDITION)
Definition: util.h:73
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:74
static bool inited
Definition: vswitch-idl.c:18
Definition: vswitch-idl.h:163
void ovsdb_idl_txn_verify(const struct ovsdb_idl_row *, const struct ovsdb_idl_column *)
Definition: ovsdb-idl.c:2168
struct ovsdb_idl_column ovsrec_bridge_columns[OVSREC_BRIDGE_N_COLUMNS]
Definition: vswitch-idl.c:2962
void ovsrec_bridge_verify_netflow ( const struct ovsrec_bridge row)
1556 {
1557  ovs_assert(inited);
1559 }
#define ovs_assert(CONDITION)
Definition: util.h:73
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:74
static bool inited
Definition: vswitch-idl.c:18
Definition: vswitch-idl.h:164
void ovsdb_idl_txn_verify(const struct ovsdb_idl_row *, const struct ovsdb_idl_column *)
Definition: ovsdb-idl.c:2168
struct ovsdb_idl_column ovsrec_bridge_columns[OVSREC_BRIDGE_N_COLUMNS]
Definition: vswitch-idl.c:2962
void ovsrec_bridge_verify_other_config ( const struct ovsrec_bridge row)
1588 {
1589  ovs_assert(inited);
1591 }
#define ovs_assert(CONDITION)
Definition: util.h:73
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:74
static bool inited
Definition: vswitch-idl.c:18
Definition: vswitch-idl.h:165
void ovsdb_idl_txn_verify(const struct ovsdb_idl_row *, const struct ovsdb_idl_column *)
Definition: ovsdb-idl.c:2168
struct ovsdb_idl_column ovsrec_bridge_columns[OVSREC_BRIDGE_N_COLUMNS]
Definition: vswitch-idl.c:2962
void ovsrec_bridge_verify_ports ( const struct ovsrec_bridge row)
1620 {
1621  ovs_assert(inited);
1623 }
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: vswitch-idl.h:166
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:74
static bool inited
Definition: vswitch-idl.c:18
void ovsdb_idl_txn_verify(const struct ovsdb_idl_row *, const struct ovsdb_idl_column *)
Definition: ovsdb-idl.c:2168
struct ovsdb_idl_column ovsrec_bridge_columns[OVSREC_BRIDGE_N_COLUMNS]
Definition: vswitch-idl.c:2962
void ovsrec_bridge_verify_protocols ( const struct ovsrec_bridge row)
1652 {
1653  ovs_assert(inited);
1655 }
#define ovs_assert(CONDITION)
Definition: util.h:73
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:74
static bool inited
Definition: vswitch-idl.c:18
Definition: vswitch-idl.h:167
void ovsdb_idl_txn_verify(const struct ovsdb_idl_row *, const struct ovsdb_idl_column *)
Definition: ovsdb-idl.c:2168
struct ovsdb_idl_column ovsrec_bridge_columns[OVSREC_BRIDGE_N_COLUMNS]
Definition: vswitch-idl.c:2962
void ovsrec_bridge_verify_rstp_enable ( const struct ovsrec_bridge row)
1684 {
1685  ovs_assert(inited);
1687 }
#define ovs_assert(CONDITION)
Definition: util.h:73
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:74
Definition: vswitch-idl.h:168
static bool inited
Definition: vswitch-idl.c:18
void ovsdb_idl_txn_verify(const struct ovsdb_idl_row *, const struct ovsdb_idl_column *)
Definition: ovsdb-idl.c:2168
struct ovsdb_idl_column ovsrec_bridge_columns[OVSREC_BRIDGE_N_COLUMNS]
Definition: vswitch-idl.c:2962
void ovsrec_bridge_verify_rstp_status ( const struct ovsrec_bridge row)
1716 {
1717  ovs_assert(inited);
1719 }
Definition: vswitch-idl.h:169
#define ovs_assert(CONDITION)
Definition: util.h:73
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:74
static bool inited
Definition: vswitch-idl.c:18
void ovsdb_idl_txn_verify(const struct ovsdb_idl_row *, const struct ovsdb_idl_column *)
Definition: ovsdb-idl.c:2168
struct ovsdb_idl_column ovsrec_bridge_columns[OVSREC_BRIDGE_N_COLUMNS]
Definition: vswitch-idl.c:2962
void ovsrec_bridge_verify_sflow ( const struct ovsrec_bridge row)
1748 {
1749  ovs_assert(inited);
1751 }
#define ovs_assert(CONDITION)
Definition: util.h:73
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:74
Definition: vswitch-idl.h:170
static bool inited
Definition: vswitch-idl.c:18
void ovsdb_idl_txn_verify(const struct ovsdb_idl_row *, const struct ovsdb_idl_column *)
Definition: ovsdb-idl.c:2168
struct ovsdb_idl_column ovsrec_bridge_columns[OVSREC_BRIDGE_N_COLUMNS]
Definition: vswitch-idl.c:2962
void ovsrec_bridge_verify_status ( const struct ovsrec_bridge row)
1780 {
1781  ovs_assert(inited);
1783 }
Definition: vswitch-idl.h:171
#define ovs_assert(CONDITION)
Definition: util.h:73
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:74
static bool inited
Definition: vswitch-idl.c:18
void ovsdb_idl_txn_verify(const struct ovsdb_idl_row *, const struct ovsdb_idl_column *)
Definition: ovsdb-idl.c:2168
struct ovsdb_idl_column ovsrec_bridge_columns[OVSREC_BRIDGE_N_COLUMNS]
Definition: vswitch-idl.c:2962
void ovsrec_bridge_verify_stp_enable ( const struct ovsrec_bridge row)
1812 {
1813  ovs_assert(inited);
1815 }
#define ovs_assert(CONDITION)
Definition: util.h:73
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:74
static bool inited
Definition: vswitch-idl.c:18
Definition: vswitch-idl.h:172
void ovsdb_idl_txn_verify(const struct ovsdb_idl_row *, const struct ovsdb_idl_column *)
Definition: ovsdb-idl.c:2168
struct ovsdb_idl_column ovsrec_bridge_columns[OVSREC_BRIDGE_N_COLUMNS]
Definition: vswitch-idl.c:2962
static struct ovsrec_controller* ovsrec_controller_cast ( const struct ovsdb_idl_row row)
static
35 {
36  return row ? CONTAINER_OF(row, struct ovsrec_controller, header_) : NULL;
37 }
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:74
#define CONTAINER_OF(POINTER, STRUCT, MEMBER)
Definition: util.h:207
Definition: vswitch-idl.h:288
static void ovsrec_controller_columns_init ( void  )
static
4984 {
4985  struct ovsdb_idl_column *c;
4986 
4987  /* Initialize ovsrec_controller_col_connection_mode. */
4989  c->name = "connection_mode";
4991  c->type.key.enum_ = xmalloc(sizeof *c->type.key.enum_);
4992  c->type.key.enum_->n = 2;
4993  c->type.key.enum_->keys = xmalloc(2 * sizeof *c->type.key.enum_->keys);
4994  c->type.key.enum_->keys[0].string = xstrdup("in-band");
4995  c->type.key.enum_->keys[1].string = xstrdup("out-of-band");
4996  c->type.key.enum_->values = NULL;
4998  c->type.key.u.string.minLen = 0;
5000  c->type.n_min = 0;
5001  c->type.n_max = 1;
5002  c->mutable = true;
5005 
5006  /* Initialize ovsrec_controller_col_controller_burst_limit. */
5008  c->name = "controller_burst_limit";
5010  c->type.key.u.integer.min = INT64_C(25);
5012  c->type.n_min = 0;
5013  c->type.n_max = 1;
5014  c->mutable = true;
5017 
5018  /* Initialize ovsrec_controller_col_controller_rate_limit. */
5020  c->name = "controller_rate_limit";
5022  c->type.key.u.integer.min = INT64_C(100);
5024  c->type.n_min = 0;
5025  c->type.n_max = 1;
5026  c->mutable = true;
5029 
5030  /* Initialize ovsrec_controller_col_enable_async_messages. */
5032  c->name = "enable_async_messages";
5035  c->type.n_min = 0;
5036  c->type.n_max = 1;
5037  c->mutable = true;
5040 
5041  /* Initialize ovsrec_controller_col_external_ids. */
5043  c->name = "external_ids";
5045  c->type.key.u.string.minLen = 0;
5047  c->type.value.u.string.minLen = 0;
5048  c->type.n_min = 0;
5049  c->type.n_max = UINT_MAX;
5050  c->mutable = true;
5053 
5054  /* Initialize ovsrec_controller_col_inactivity_probe. */
5056  c->name = "inactivity_probe";
5059  c->type.n_min = 0;
5060  c->type.n_max = 1;
5061  c->mutable = true;
5064 
5065  /* Initialize ovsrec_controller_col_is_connected. */
5067  c->name = "is_connected";
5070  c->type.n_min = 1;
5071  c->type.n_max = 1;
5072  c->mutable = true;
5075 
5076  /* Initialize ovsrec_controller_col_local_gateway. */
5078  c->name = "local_gateway";
5080  c->type.key.u.string.minLen = 0;
5082  c->type.n_min = 0;
5083  c->type.n_max = 1;
5084  c->mutable = true;
5087 
5088  /* Initialize ovsrec_controller_col_local_ip. */
5090  c->name = "local_ip";
5092  c->type.key.u.string.minLen = 0;
5094  c->type.n_min = 0;
5095  c->type.n_max = 1;
5096  c->mutable = true;
5099 
5100  /* Initialize ovsrec_controller_col_local_netmask. */
5102  c->name = "local_netmask";
5104  c->type.key.u.string.minLen = 0;
5106  c->type.n_min = 0;
5107  c->type.n_max = 1;
5108  c->mutable = true;
5111 
5112  /* Initialize ovsrec_controller_col_max_backoff. */
5114  c->name = "max_backoff";
5116  c->type.key.u.integer.min = INT64_C(1000);
5118  c->type.n_min = 0;
5119  c->type.n_max = 1;
5120  c->mutable = true;
5123 
5124  /* Initialize ovsrec_controller_col_other_config. */
5126  c->name = "other_config";
5128  c->type.key.u.string.minLen = 0;
5130  c->type.value.u.string.minLen = 0;
5131  c->type.n_min = 0;
5132  c->type.n_max = UINT_MAX;
5133  c->mutable = true;
5136 
5137  /* Initialize ovsrec_controller_col_role. */
5139  c->name = "role";
5141  c->type.key.enum_ = xmalloc(sizeof *c->type.key.enum_);
5142  c->type.key.enum_->n = 3;
5143  c->type.key.enum_->keys = xmalloc(3 * sizeof *c->type.key.enum_->keys);
5144  c->type.key.enum_->keys[0].string = xstrdup("master");
5145  c->type.key.enum_->keys[1].string = xstrdup("other");
5146  c->type.key.enum_->keys[2].string = xstrdup("slave");
5147  c->type.key.enum_->values = NULL;
5149  c->type.key.u.string.minLen = 0;
5151  c->type.n_min = 0;
5152  c->type.n_max = 1;
5153  c->mutable = true;
5156 
5157  /* Initialize ovsrec_controller_col_status. */
5159  c->name = "status";
5161  c->type.key.u.string.minLen = 0;
5163  c->type.value.u.string.minLen = 0;
5164  c->type.n_min = 0;
5165  c->type.n_max = UINT_MAX;
5166  c->mutable = true;
5169 
5170  /* Initialize ovsrec_controller_col_target. */
5172  c->name = "target";
5174  c->type.key.u.string.minLen = 0;
5176  c->type.n_min = 1;
5177  c->type.n_max = 1;
5178  c->mutable = true;
5181 }
void(* unparse)(struct ovsdb_idl_row *)
Definition: ovsdb-idl-provider.h:46
#define ovsrec_controller_col_controller_burst_limit
Definition: vswitch-idl.h:371
static void ovsrec_controller_parse_local_netmask(struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
Definition: vswitch-idl.c:3410
Definition: ovsdb-idl-provider.h:41
static void ovsrec_controller_unparse_controller_burst_limit(struct ovsdb_idl_row *row_)
Definition: vswitch-idl.c:3504
static void ovsrec_controller_unparse_other_config(struct ovsdb_idl_row *row_)
Definition: vswitch-idl.c:3582
struct ovsdb_base_type::@145::ovsdb_string_constraints string
#define ovsrec_controller_col_target
Definition: vswitch-idl.h:363
#define ovsrec_controller_col_connection_mode
Definition: vswitch-idl.h:365
#define ovsrec_controller_col_external_ids
Definition: vswitch-idl.h:372
void ovsdb_base_type_init(struct ovsdb_base_type *base, enum ovsdb_atomic_type type)
Definition: ovsdb-types.c:117
union ovsdb_base_type::@145 u
static void ovsrec_controller_parse_connection_mode(struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
Definition: vswitch-idl.c:3267
static void ovsrec_controller_unparse_enable_async_messages(struct ovsdb_idl_row *row_)
Definition: vswitch-idl.c:3522
unsigned int n_min
Definition: ovsdb-types.h:136
struct ovsdb_base_type key
Definition: ovsdb-types.h:134
static void ovsrec_controller_parse_local_ip(struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
Definition: vswitch-idl.c:3397
static void ovsrec_controller_unparse_local_netmask(struct ovsdb_idl_row *row OVS_UNUSED)
Definition: vswitch-idl.c:3567
void(* parse)(struct ovsdb_idl_row *, const struct ovsdb_datum *)
Definition: ovsdb-idl-provider.h:45
unsigned int n_max
Definition: ovsdb-types.h:137
#define ovsrec_controller_col_controller_rate_limit
Definition: vswitch-idl.h:367
static void ovsrec_controller_unparse_external_ids(struct ovsdb_idl_row *row_)
Definition: vswitch-idl.c:3531
char * string
Definition: ovsdb-data.h:33
static void ovsrec_controller_unparse_inactivity_probe(struct ovsdb_idl_row *row_)
Definition: vswitch-idl.c:3540
Definition: ovsdb-types.h:33
struct ovsdb_base_type value
Definition: ovsdb-types.h:135
char * name
Definition: ovsdb-idl-provider.h:42
void ovsdb_datum_sort_assert(struct ovsdb_datum *datum, enum ovsdb_atomic_type key_type)
Definition: ovsdb-data.c:1074
union ovsdb_atom * keys
Definition: ovsdb-data.h:127
Definition: ovsdb-types.h:30
void * xmalloc(size_t size)
Definition: util.c:110
union ovsdb_atom * values
Definition: ovsdb-data.h:128
static void ovsrec_controller_unparse_max_backoff(struct ovsdb_idl_row *row_)
Definition: vswitch-idl.c:3573
char * xstrdup(const char *s)
Definition: util.c:149
#define ovsrec_controller_col_is_connected
Definition: vswitch-idl.h:374
static void ovsrec_controller_unparse_status(struct ovsdb_idl_row *row_)
Definition: vswitch-idl.c:3597
#define ovsrec_controller_col_max_backoff
Definition: vswitch-idl.h:361
struct ovsdb_type type
Definition: ovsdb-idl-provider.h:43
unsigned int n
Definition: ovsdb-data.h:126
#define ovsrec_controller_col_inactivity_probe
Definition: vswitch-idl.h:368
static void ovsrec_controller_parse_local_gateway(struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
Definition: vswitch-idl.c:3384
static void ovsrec_controller_unparse_controller_rate_limit(struct ovsdb_idl_row *row_)
Definition: vswitch-idl.c:3513
static void ovsrec_controller_parse_other_config(struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
Definition: vswitch-idl.c:3442
#define ovsrec_controller_col_local_ip
Definition: vswitch-idl.h:364
static void ovsrec_controller_unparse_local_ip(struct ovsdb_idl_row *row OVS_UNUSED)
Definition: vswitch-idl.c:3561
bool mutable
Definition: ovsdb-idl-provider.h:44
Definition: ovsdb-types.h:29
static void ovsrec_controller_parse_controller_rate_limit(struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
Definition: vswitch-idl.c:3299
static void ovsrec_controller_parse_external_ids(struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
Definition: vswitch-idl.c:3337
static void ovsrec_controller_unparse_role(struct ovsdb_idl_row *row OVS_UNUSED)
Definition: vswitch-idl.c:3591
static void ovsrec_controller_unparse_local_gateway(struct ovsdb_idl_row *row OVS_UNUSED)
Definition: vswitch-idl.c:3555
static void ovsrec_controller_parse_role(struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
Definition: vswitch-idl.c:3457
struct ovsdb_base_type::@145::ovsdb_integer_constraints integer
static void ovsrec_controller_parse_enable_async_messages(struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
Definition: vswitch-idl.c:3318
#define ovsrec_controller_col_other_config
Definition: vswitch-idl.h:366
static void ovsrec_controller_parse_target(struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
Definition: vswitch-idl.c:3485
static void ovsrec_controller_parse_max_backoff(struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
Definition: vswitch-idl.c:3423
#define ovsrec_controller_col_enable_async_messages
Definition: vswitch-idl.h:375
static void ovsrec_controller_parse_is_connected(struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
Definition: vswitch-idl.c:3371
Definition: ovsdb-types.h:32
static void ovsrec_controller_parse_controller_burst_limit(struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
Definition: vswitch-idl.c:3280
static void ovsrec_controller_parse_status(struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
Definition: vswitch-idl.c:3470
static void ovsrec_controller_parse_inactivity_probe(struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
Definition: vswitch-idl.c:3352
#define ovsrec_controller_col_status
Definition: vswitch-idl.h:362
struct ovsdb_datum * enum_
Definition: ovsdb-types.h:57
#define ovsrec_controller_col_local_netmask
Definition: vswitch-idl.h:369
static void ovsrec_controller_unparse_target(struct ovsdb_idl_row *row OVS_UNUSED)
Definition: vswitch-idl.c:3606
static void ovsrec_controller_unparse_is_connected(struct ovsdb_idl_row *row OVS_UNUSED)
Definition: vswitch-idl.c:3549
#define ovsrec_controller_col_local_gateway
Definition: vswitch-idl.h:373
#define ovsrec_controller_col_role
Definition: vswitch-idl.h:370
static void ovsrec_controller_unparse_connection_mode(struct ovsdb_idl_row *row OVS_UNUSED)
Definition: vswitch-idl.c:3498
void ovsrec_controller_delete ( const struct ovsrec_controller row)
3661 {
3663 }
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:289
void ovsdb_idl_txn_delete(const struct ovsdb_idl_row *row_)
Definition: ovsdb-idl.c:2208
const struct ovsrec_controller* ovsrec_controller_first ( const struct ovsdb_idl idl)
3643 {
3645 }
Definition: vswitch-idl.h:1916
struct ovsdb_idl_table_class ovsrec_table_classes[OVSREC_N_TABLES]
Definition: vswitch-idl.c:21482
static struct ovsrec_controller * ovsrec_controller_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:34
const struct ovsdb_idl_row * ovsdb_idl_first_row(const struct ovsdb_idl *idl, const struct ovsdb_idl_table_class *table_class)
Definition: ovsdb-idl.c:1290
const struct ovsdb_datum* ovsrec_controller_get_connection_mode ( const struct ovsrec_controller row,
enum ovsdb_atomic_type key_type  OVS_UNUSED 
)
4180 {
4181  ovs_assert(key_type == OVSDB_TYPE_STRING);
4183 }
#define ovsrec_controller_col_connection_mode
Definition: vswitch-idl.h:365
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: ovsdb-types.h:33
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:289
const struct ovsdb_datum * ovsdb_idl_read(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column)
Definition: ovsdb-idl.c:1320
const struct ovsdb_datum* ovsrec_controller_get_controller_burst_limit ( const struct ovsrec_controller row,
enum ovsdb_atomic_type key_type  OVS_UNUSED 
)
4207 {
4208  ovs_assert(key_type == OVSDB_TYPE_INTEGER);
4210 }
#define ovsrec_controller_col_controller_burst_limit
Definition: vswitch-idl.h:371
#define ovs_assert(CONDITION)
Definition: util.h:73
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:289
Definition: ovsdb-types.h:30
const struct ovsdb_datum * ovsdb_idl_read(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column)
Definition: ovsdb-idl.c:1320
const struct ovsdb_datum* ovsrec_controller_get_controller_rate_limit ( const struct ovsrec_controller row,
enum ovsdb_atomic_type key_type  OVS_UNUSED 
)
4234 {
4235  ovs_assert(key_type == OVSDB_TYPE_INTEGER);
4237 }
#define ovs_assert(CONDITION)
Definition: util.h:73
#define ovsrec_controller_col_controller_rate_limit
Definition: vswitch-idl.h:367
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:289
Definition: ovsdb-types.h:30
const struct ovsdb_datum * ovsdb_idl_read(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column)
Definition: ovsdb-idl.c:1320
const struct ovsdb_datum* ovsrec_controller_get_enable_async_messages ( const struct ovsrec_controller row,
enum ovsdb_atomic_type key_type  OVS_UNUSED 
)
4261 {
4262  ovs_assert(key_type == OVSDB_TYPE_BOOLEAN);
4264 }
#define ovs_assert(CONDITION)
Definition: util.h:73
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:289
const struct ovsdb_datum * ovsdb_idl_read(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column)
Definition: ovsdb-idl.c:1320
#define ovsrec_controller_col_enable_async_messages
Definition: vswitch-idl.h:375
Definition: ovsdb-types.h:32
const struct ovsdb_datum* ovsrec_controller_get_external_ids ( const struct ovsrec_controller row,
enum ovsdb_atomic_type key_type  OVS_UNUSED,
enum ovsdb_atomic_type value_type  OVS_UNUSED 
)
4290 {
4291  ovs_assert(key_type == OVSDB_TYPE_STRING);
4292  ovs_assert(value_type == OVSDB_TYPE_STRING);
4294 }
#define ovs_assert(CONDITION)
Definition: util.h:73
#define ovsrec_controller_col_external_ids
Definition: vswitch-idl.h:372
Definition: ovsdb-types.h:33
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:289
const struct ovsdb_datum * ovsdb_idl_read(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column)
Definition: ovsdb-idl.c:1320
const struct ovsrec_controller* ovsrec_controller_get_for_uuid ( const struct ovsdb_idl idl,
const struct uuid uuid 
)
3631 {
3633 }
Definition: vswitch-idl.h:1916
const struct ovsdb_idl_row * ovsdb_idl_get_row_for_uuid(const struct ovsdb_idl *idl, const struct ovsdb_idl_table_class *tc, const struct uuid *uuid)
Definition: ovsdb-idl.c:1262
struct ovsdb_idl_table_class ovsrec_table_classes[OVSREC_N_TABLES]
Definition: vswitch-idl.c:21482
static struct ovsrec_controller * ovsrec_controller_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:34
const struct ovsdb_datum* ovsrec_controller_get_inactivity_probe ( const struct ovsrec_controller row,
enum ovsdb_atomic_type key_type  OVS_UNUSED 
)
4318 {
4319  ovs_assert(key_type == OVSDB_TYPE_INTEGER);
4321 }
#define ovs_assert(CONDITION)
Definition: util.h:73
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:289
Definition: ovsdb-types.h:30
#define ovsrec_controller_col_inactivity_probe
Definition: vswitch-idl.h:368
const struct ovsdb_datum * ovsdb_idl_read(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column)
Definition: ovsdb-idl.c:1320
const struct ovsdb_datum* ovsrec_controller_get_is_connected ( const struct ovsrec_controller row,
enum ovsdb_atomic_type key_type  OVS_UNUSED 
)
4345 {
4346  ovs_assert(key_type == OVSDB_TYPE_BOOLEAN);
4348 }
#define ovs_assert(CONDITION)
Definition: util.h:73
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:289
#define ovsrec_controller_col_is_connected
Definition: vswitch-idl.h:374
const struct ovsdb_datum * ovsdb_idl_read(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column)
Definition: ovsdb-idl.c:1320
Definition: ovsdb-types.h:32
const struct ovsdb_datum* ovsrec_controller_get_local_gateway ( const struct ovsrec_controller row,
enum ovsdb_atomic_type key_type  OVS_UNUSED 
)
4372 {
4373  ovs_assert(key_type == OVSDB_TYPE_STRING);
4375 }
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: ovsdb-types.h:33
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:289
const struct ovsdb_datum * ovsdb_idl_read(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column)
Definition: ovsdb-idl.c:1320
#define ovsrec_controller_col_local_gateway
Definition: vswitch-idl.h:373
const struct ovsdb_datum* ovsrec_controller_get_local_ip ( const struct ovsrec_controller row,
enum ovsdb_atomic_type key_type  OVS_UNUSED 
)
4399 {
4400  ovs_assert(key_type == OVSDB_TYPE_STRING);
4402 }
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: ovsdb-types.h:33
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:289
#define ovsrec_controller_col_local_ip
Definition: vswitch-idl.h:364
const struct ovsdb_datum * ovsdb_idl_read(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column)
Definition: ovsdb-idl.c:1320
const struct ovsdb_datum* ovsrec_controller_get_local_netmask ( const struct ovsrec_controller row,
enum ovsdb_atomic_type key_type  OVS_UNUSED 
)
4426 {
4427  ovs_assert(key_type == OVSDB_TYPE_STRING);
4429 }
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: ovsdb-types.h:33
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:289
const struct ovsdb_datum * ovsdb_idl_read(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column)
Definition: ovsdb-idl.c:1320
#define ovsrec_controller_col_local_netmask
Definition: vswitch-idl.h:369
const struct ovsdb_datum* ovsrec_controller_get_max_backoff ( const struct ovsrec_controller row,
enum ovsdb_atomic_type key_type  OVS_UNUSED 
)
4453 {
4454  ovs_assert(key_type == OVSDB_TYPE_INTEGER);
4456 }
#define ovs_assert(CONDITION)
Definition: util.h:73
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:289
Definition: ovsdb-types.h:30
#define ovsrec_controller_col_max_backoff
Definition: vswitch-idl.h:361
const struct ovsdb_datum * ovsdb_idl_read(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column)
Definition: ovsdb-idl.c:1320
const struct ovsdb_datum* ovsrec_controller_get_other_config ( const struct ovsrec_controller row,
enum ovsdb_atomic_type key_type  OVS_UNUSED,
enum ovsdb_atomic_type value_type  OVS_UNUSED 
)
4482 {
4483  ovs_assert(key_type == OVSDB_TYPE_STRING);
4484  ovs_assert(value_type == OVSDB_TYPE_STRING);
4486 }
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: ovsdb-types.h:33
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:289
const struct ovsdb_datum * ovsdb_idl_read(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column)
Definition: ovsdb-idl.c:1320
#define ovsrec_controller_col_other_config
Definition: vswitch-idl.h:366
const struct ovsdb_datum* ovsrec_controller_get_role ( const struct ovsrec_controller row,
enum ovsdb_atomic_type key_type  OVS_UNUSED 
)
4510 {
4511  ovs_assert(key_type == OVSDB_TYPE_STRING);
4513 }
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: ovsdb-types.h:33
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:289
const struct ovsdb_datum * ovsdb_idl_read(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column)
Definition: ovsdb-idl.c:1320
#define ovsrec_controller_col_role
Definition: vswitch-idl.h:370
const struct ovsdb_datum* ovsrec_controller_get_status ( const struct ovsrec_controller row,
enum ovsdb_atomic_type key_type  OVS_UNUSED,
enum ovsdb_atomic_type value_type  OVS_UNUSED 
)
4539 {
4540  ovs_assert(key_type == OVSDB_TYPE_STRING);
4541  ovs_assert(value_type == OVSDB_TYPE_STRING);
4543 }
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: ovsdb-types.h:33
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:289
const struct ovsdb_datum * ovsdb_idl_read(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column)
Definition: ovsdb-idl.c:1320
#define ovsrec_controller_col_status
Definition: vswitch-idl.h:362
const struct ovsdb_datum* ovsrec_controller_get_target ( const struct ovsrec_controller row,
enum ovsdb_atomic_type key_type  OVS_UNUSED 
)
4567 {
4568  ovs_assert(key_type == OVSDB_TYPE_STRING);
4570 }
#define ovsrec_controller_col_target
Definition: vswitch-idl.h:363
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: ovsdb-types.h:33
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:289
const struct ovsdb_datum * ovsdb_idl_read(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column)
Definition: ovsdb-idl.c:1320
void ovsrec_controller_init ( struct ovsrec_controller row)
3620 {
3621  memset(row, 0, sizeof *row);
3622  smap_init(&row->external_ids);
3623  smap_init(&row->other_config);
3624  smap_init(&row->status);
3625 }
struct smap other_config
Definition: vswitch-idl.h:330
void smap_init(struct smap *smap)
Definition: smap.c:33
struct smap status
Definition: vswitch-idl.h:336
struct smap external_ids
Definition: vswitch-idl.h:307
static void ovsrec_controller_init__ ( struct ovsdb_idl_row row)
static
3613 {
3615 }
void ovsrec_controller_init(struct ovsrec_controller *row)
Definition: vswitch-idl.c:3619
static struct ovsrec_controller * ovsrec_controller_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:34
struct ovsrec_controller* ovsrec_controller_insert ( struct ovsdb_idl_txn txn)
3674 {
3676 }
Definition: vswitch-idl.h:1916
struct ovsdb_idl_table_class ovsrec_table_classes[OVSREC_N_TABLES]
Definition: vswitch-idl.c:21482
const struct ovsdb_idl_row * ovsdb_idl_txn_insert(struct ovsdb_idl_txn *txn, const struct ovsdb_idl_table_class *class, const struct uuid *uuid)
Definition: ovsdb-idl.c:2247
static struct ovsrec_controller * ovsrec_controller_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:34
const struct ovsrec_controller* ovsrec_controller_next ( const struct ovsrec_controller row)
3651 {
3653 }
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:289
const struct ovsdb_idl_row * ovsdb_idl_next_row(const struct ovsdb_idl_row *row)
Definition: ovsdb-idl.c:1301
static struct ovsrec_controller * ovsrec_controller_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:34
static void ovsrec_controller_parse_connection_mode ( struct ovsdb_idl_row row_,
const struct ovsdb_datum datum 
)
static
3268 {
3269  struct ovsrec_controller *row = ovsrec_controller_cast(row_);
3270 
3271  ovs_assert(inited);
3272  if (datum->n >= 1) {
3273  row->connection_mode = datum->keys[0].string;
3274  } else {
3275  row->connection_mode = NULL;
3276  }
3277 }
#define ovs_assert(CONDITION)
Definition: util.h:73
char * string
Definition: ovsdb-data.h:33
union ovsdb_atom * keys
Definition: ovsdb-data.h:127
char * connection_mode
Definition: vswitch-idl.h:292
static bool inited
Definition: vswitch-idl.c:18
unsigned int n
Definition: ovsdb-data.h:126
static struct ovsrec_controller * ovsrec_controller_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:34
Definition: vswitch-idl.h:288
static void ovsrec_controller_parse_controller_burst_limit ( struct ovsdb_idl_row row_,
const struct ovsdb_datum datum 
)
static
3281 {
3282  struct ovsrec_controller *row = ovsrec_controller_cast(row_);
3283  size_t n = MIN(1, datum->n);
3284  size_t i;
3285 
3286  ovs_assert(inited);
3287  row->controller_burst_limit = NULL;
3288  row->n_controller_burst_limit = 0;
3289  for (i = 0; i < n; i++) {
3290  if (!row->n_controller_burst_limit) {
3291  row->controller_burst_limit = xmalloc(n * sizeof *row->controller_burst_limit);
3292  }
3294  row->n_controller_burst_limit++;
3295  }
3296 }
int64_t integer
Definition: ovsdb-data.h:30
#define ovs_assert(CONDITION)
Definition: util.h:73
size_t n_controller_burst_limit
Definition: vswitch-idl.h:296
union ovsdb_atom * keys
Definition: ovsdb-data.h:127
void * xmalloc(size_t size)
Definition: util.c:110
static bool inited
Definition: vswitch-idl.c:18
unsigned int n
Definition: ovsdb-data.h:126
#define MIN(_a, _b)
Definition: Util.h:68
int64_t * controller_burst_limit
Definition: vswitch-idl.h:295
static struct ovsrec_controller * ovsrec_controller_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:34
Definition: vswitch-idl.h:288
static void ovsrec_controller_parse_controller_rate_limit ( struct ovsdb_idl_row row_,
const struct ovsdb_datum datum 
)
static
3300 {
3301  struct ovsrec_controller *row = ovsrec_controller_cast(row_);
3302  size_t n = MIN(1, datum->n);
3303  size_t i;
3304 
3305  ovs_assert(inited);
3306  row->controller_rate_limit = NULL;
3307  row->n_controller_rate_limit = 0;
3308  for (i = 0; i < n; i++) {
3309  if (!row->n_controller_rate_limit) {
3310  row->controller_rate_limit = xmalloc(n * sizeof *row->controller_rate_limit);
3311  }
3313  row->n_controller_rate_limit++;
3314  }
3315 }
int64_t integer
Definition: ovsdb-data.h:30
#define ovs_assert(CONDITION)
Definition: util.h:73
int64_t * controller_rate_limit
Definition: vswitch-idl.h:299
union ovsdb_atom * keys
Definition: ovsdb-data.h:127
void * xmalloc(size_t size)
Definition: util.c:110
static bool inited
Definition: vswitch-idl.c:18
size_t n_controller_rate_limit
Definition: vswitch-idl.h:300
unsigned int n
Definition: ovsdb-data.h:126
#define MIN(_a, _b)
Definition: Util.h:68
static struct ovsrec_controller * ovsrec_controller_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:34
Definition: vswitch-idl.h:288
static void ovsrec_controller_parse_enable_async_messages ( struct ovsdb_idl_row row_,
const struct ovsdb_datum datum 
)
static
3319 {
3320  struct ovsrec_controller *row = ovsrec_controller_cast(row_);
3321  size_t n = MIN(1, datum->n);
3322  size_t i;
3323 
3324  ovs_assert(inited);
3325  row->enable_async_messages = NULL;
3326  row->n_enable_async_messages = 0;
3327  for (i = 0; i < n; i++) {
3328  if (!row->n_enable_async_messages) {
3330  }
3332  row->n_enable_async_messages++;
3333  }
3334 }
size_t n_enable_async_messages
Definition: vswitch-idl.h:304
#define ovs_assert(CONDITION)
Definition: util.h:73
bool * enable_async_messages
Definition: vswitch-idl.h:303
union ovsdb_atom * keys
Definition: ovsdb-data.h:127
void * xmalloc(size_t size)
Definition: util.c:110
bool boolean
Definition: ovsdb-data.h:32
static bool inited
Definition: vswitch-idl.c:18
unsigned int n
Definition: ovsdb-data.h:126
#define MIN(_a, _b)
Definition: Util.h:68
Definition: vswitch-idl.c:15
static struct ovsrec_controller * ovsrec_controller_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:34
Definition: vswitch-idl.h:288
static void ovsrec_controller_parse_external_ids ( struct ovsdb_idl_row row_,
const struct ovsdb_datum datum 
)
static
3338 {
3339  struct ovsrec_controller *row = ovsrec_controller_cast(row_);
3340  size_t i;
3341 
3342  ovs_assert(inited);
3343  smap_init(&row->external_ids);
3344  for (i = 0; i < datum->n; i++) {
3345  smap_add(&row->external_ids,
3346  datum->keys[i].string,
3347  datum->values[i].string);
3348  }
3349 }
#define ovs_assert(CONDITION)
Definition: util.h:73
void smap_init(struct smap *smap)
Definition: smap.c:33
char * string
Definition: ovsdb-data.h:33
struct smap_node * smap_add(struct smap *smap, const char *key, const char *value)
Definition: smap.c:50
struct smap external_ids
Definition: vswitch-idl.h:307
union ovsdb_atom * keys
Definition: ovsdb-data.h:127
union ovsdb_atom * values
Definition: ovsdb-data.h:128
static bool inited
Definition: vswitch-idl.c:18
unsigned int n
Definition: ovsdb-data.h:126
static struct ovsrec_controller * ovsrec_controller_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:34
Definition: vswitch-idl.h:288
static void ovsrec_controller_parse_inactivity_probe ( struct ovsdb_idl_row row_,
const struct ovsdb_datum datum 
)
static
3353 {
3354  struct ovsrec_controller *row = ovsrec_controller_cast(row_);
3355  size_t n = MIN(1, datum->n);
3356  size_t i;
3357 
3358  ovs_assert(inited);
3359  row->inactivity_probe = NULL;
3360  row->n_inactivity_probe = 0;
3361  for (i = 0; i < n; i++) {
3362  if (!row->n_inactivity_probe) {
3363  row->inactivity_probe = xmalloc(n * sizeof *row->inactivity_probe);
3364  }
3365  row->inactivity_probe[row->n_inactivity_probe] = datum->keys[i].integer;
3366  row->n_inactivity_probe++;
3367  }
3368 }
int64_t integer
Definition: ovsdb-data.h:30
#define ovs_assert(CONDITION)
Definition: util.h:73
union ovsdb_atom * keys
Definition: ovsdb-data.h:127
void * xmalloc(size_t size)
Definition: util.c:110
size_t n_inactivity_probe
Definition: vswitch-idl.h:311
static bool inited
Definition: vswitch-idl.c:18
unsigned int n
Definition: ovsdb-data.h:126
#define MIN(_a, _b)
Definition: Util.h:68
int64_t * inactivity_probe
Definition: vswitch-idl.h:310
static struct ovsrec_controller * ovsrec_controller_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:34
Definition: vswitch-idl.h:288
static void ovsrec_controller_parse_is_connected ( struct ovsdb_idl_row row_,
const struct ovsdb_datum datum 
)
static
3372 {
3373  struct ovsrec_controller *row = ovsrec_controller_cast(row_);
3374 
3375  ovs_assert(inited);
3376  if (datum->n >= 1) {
3377  row->is_connected = datum->keys[0].boolean;
3378  } else {
3379  row->is_connected = false;
3380  }
3381 }
#define ovs_assert(CONDITION)
Definition: util.h:73
union ovsdb_atom * keys
Definition: ovsdb-data.h:127
bool boolean
Definition: ovsdb-data.h:32
static bool inited
Definition: vswitch-idl.c:18
unsigned int n
Definition: ovsdb-data.h:126
static struct ovsrec_controller * ovsrec_controller_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:34
bool is_connected
Definition: vswitch-idl.h:314
Definition: vswitch-idl.h:288
static void ovsrec_controller_parse_local_gateway ( struct ovsdb_idl_row row_,
const struct ovsdb_datum datum 
)
static
3385 {
3386  struct ovsrec_controller *row = ovsrec_controller_cast(row_);
3387 
3388  ovs_assert(inited);
3389  if (datum->n >= 1) {
3390  row->local_gateway = datum->keys[0].string;
3391  } else {
3392  row->local_gateway = NULL;
3393  }
3394 }
#define ovs_assert(CONDITION)
Definition: util.h:73
char * string
Definition: ovsdb-data.h:33
union ovsdb_atom * keys
Definition: ovsdb-data.h:127
static bool inited
Definition: vswitch-idl.c:18
unsigned int n
Definition: ovsdb-data.h:126
char * local_gateway
Definition: vswitch-idl.h:317
static struct ovsrec_controller * ovsrec_controller_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:34
Definition: vswitch-idl.h:288
static void ovsrec_controller_parse_local_ip ( struct ovsdb_idl_row row_,
const struct ovsdb_datum datum 
)
static
3398 {
3399  struct ovsrec_controller *row = ovsrec_controller_cast(row_);
3400 
3401  ovs_assert(inited);
3402  if (datum->n >= 1) {
3403  row->local_ip = datum->keys[0].string;
3404  } else {
3405  row->local_ip = NULL;
3406  }
3407 }
#define ovs_assert(CONDITION)
Definition: util.h:73
char * string
Definition: ovsdb-data.h:33
union ovsdb_atom * keys
Definition: ovsdb-data.h:127
static bool inited
Definition: vswitch-idl.c:18
unsigned int n
Definition: ovsdb-data.h:126
static struct ovsrec_controller * ovsrec_controller_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:34
Definition: vswitch-idl.h:288
char * local_ip
Definition: vswitch-idl.h:320
static void ovsrec_controller_parse_local_netmask ( struct ovsdb_idl_row row_,
const struct ovsdb_datum datum 
)
static
3411 {
3412  struct ovsrec_controller *row = ovsrec_controller_cast(row_);
3413 
3414  ovs_assert(inited);
3415  if (datum->n >= 1) {
3416  row->local_netmask = datum->keys[0].string;
3417  } else {
3418  row->local_netmask = NULL;
3419  }
3420 }
#define ovs_assert(CONDITION)
Definition: util.h:73
char * string
Definition: ovsdb-data.h:33
union ovsdb_atom * keys
Definition: ovsdb-data.h:127
static bool inited
Definition: vswitch-idl.c:18
unsigned int n
Definition: ovsdb-data.h:126
char * local_netmask
Definition: vswitch-idl.h:323
static struct ovsrec_controller * ovsrec_controller_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:34
Definition: vswitch-idl.h:288
static void ovsrec_controller_parse_max_backoff ( struct ovsdb_idl_row row_,
const struct ovsdb_datum datum 
)
static
3424 {
3425  struct ovsrec_controller *row = ovsrec_controller_cast(row_);
3426  size_t n = MIN(1, datum->n);
3427  size_t i;
3428 
3429  ovs_assert(inited);
3430  row->max_backoff = NULL;
3431  row->n_max_backoff = 0;
3432  for (i = 0; i < n; i++) {
3433  if (!row->n_max_backoff) {
3434  row->max_backoff = xmalloc(n * sizeof *row->max_backoff);
3435  }
3436  row->max_backoff[row->n_max_backoff] = datum->keys[i].integer;
3437  row->n_max_backoff++;
3438  }
3439 }
int64_t integer
Definition: ovsdb-data.h:30
#define ovs_assert(CONDITION)
Definition: util.h:73
union ovsdb_atom * keys
Definition: ovsdb-data.h:127
void * xmalloc(size_t size)
Definition: util.c:110
static bool inited
Definition: vswitch-idl.c:18
unsigned int n
Definition: ovsdb-data.h:126
#define MIN(_a, _b)
Definition: Util.h:68
static struct ovsrec_controller * ovsrec_controller_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:34
Definition: vswitch-idl.h:288
size_t n_max_backoff
Definition: vswitch-idl.h:327
int64_t * max_backoff
Definition: vswitch-idl.h:326
static void ovsrec_controller_parse_other_config ( struct ovsdb_idl_row row_,
const struct ovsdb_datum datum 
)
static
3443 {
3444  struct ovsrec_controller *row = ovsrec_controller_cast(row_);
3445  size_t i;
3446 
3447  ovs_assert(inited);
3448  smap_init(&row->other_config);
3449  for (i = 0; i < datum->n; i++) {
3450  smap_add(&row->other_config,
3451  datum->keys[i].string,
3452  datum->values[i].string);
3453  }
3454 }
#define ovs_assert(CONDITION)
Definition: util.h:73
struct smap other_config
Definition: vswitch-idl.h:330
void smap_init(struct smap *smap)
Definition: smap.c:33
char * string
Definition: ovsdb-data.h:33
struct smap_node * smap_add(struct smap *smap, const char *key, const char *value)
Definition: smap.c:50
union ovsdb_atom * keys
Definition: ovsdb-data.h:127
union ovsdb_atom * values
Definition: ovsdb-data.h:128
static bool inited
Definition: vswitch-idl.c:18
unsigned int n
Definition: ovsdb-data.h:126
static struct ovsrec_controller * ovsrec_controller_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:34
Definition: vswitch-idl.h:288
static void ovsrec_controller_parse_role ( struct ovsdb_idl_row row_,
const struct ovsdb_datum datum 
)
static
3458 {
3459  struct ovsrec_controller *row = ovsrec_controller_cast(row_);
3460 
3461  ovs_assert(inited);
3462  if (datum->n >= 1) {
3463  row->role = datum->keys[0].string;
3464  } else {
3465  row->role = NULL;
3466  }
3467 }
#define ovs_assert(CONDITION)
Definition: util.h:73
char * string
Definition: ovsdb-data.h:33
union ovsdb_atom * keys
Definition: ovsdb-data.h:127
char * role
Definition: vswitch-idl.h:333
static bool inited
Definition: vswitch-idl.c:18
unsigned int n
Definition: ovsdb-data.h:126
static struct ovsrec_controller * ovsrec_controller_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:34
Definition: vswitch-idl.h:288
static void ovsrec_controller_parse_status ( struct ovsdb_idl_row row_,
const struct ovsdb_datum datum 
)
static
3471 {
3472  struct ovsrec_controller *row = ovsrec_controller_cast(row_);
3473  size_t i;
3474 
3475  ovs_assert(inited);
3476  smap_init(&row->status);
3477  for (i = 0; i < datum->n; i++) {
3478  smap_add(&row->status,
3479  datum->keys[i].string,
3480  datum->values[i].string);
3481  }
3482 }
#define ovs_assert(CONDITION)
Definition: util.h:73
void smap_init(struct smap *smap)
Definition: smap.c:33
struct smap status
Definition: vswitch-idl.h:336
char * string
Definition: ovsdb-data.h:33
struct smap_node * smap_add(struct smap *smap, const char *key, const char *value)
Definition: smap.c:50
union ovsdb_atom * keys
Definition: ovsdb-data.h:127
union ovsdb_atom * values
Definition: ovsdb-data.h:128
static bool inited
Definition: vswitch-idl.c:18
unsigned int n
Definition: ovsdb-data.h:126
static struct ovsrec_controller * ovsrec_controller_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:34
Definition: vswitch-idl.h:288
static void ovsrec_controller_parse_target ( struct ovsdb_idl_row row_,
const struct ovsdb_datum datum 
)
static
3486 {
3487  struct ovsrec_controller *row = ovsrec_controller_cast(row_);
3488 
3489  ovs_assert(inited);
3490  if (datum->n >= 1) {
3491  row->target = datum->keys[0].string;
3492  } else {
3493  row->target = "";
3494  }
3495 }
#define ovs_assert(CONDITION)
Definition: util.h:73
char * target
Definition: vswitch-idl.h:339
char * string
Definition: ovsdb-data.h:33
union ovsdb_atom * keys
Definition: ovsdb-data.h:127
static bool inited
Definition: vswitch-idl.c:18
unsigned int n
Definition: ovsdb-data.h:126
static struct ovsrec_controller * ovsrec_controller_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:34
Definition: vswitch-idl.h:288
void ovsrec_controller_set_connection_mode ( const struct ovsrec_controller row,
const char *  connection_mode 
)
4583 {
4584  struct ovsdb_datum datum;
4585  union ovsdb_atom key;
4586 
4587  ovs_assert(inited);
4588  if (connection_mode) {
4589  datum.n = 1;
4590  datum.keys = &key;
4591  key.string = CONST_CAST(char *, connection_mode);
4592  } else {
4593  datum.n = 0;
4594  datum.keys = NULL;
4595  }
4596  datum.values = NULL;
4598 }
Definition: ovsdb-data.h:125
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: vswitch-idl.h:343
Definition: ovsdb-data.h:29
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:289
static bool inited
Definition: vswitch-idl.c:18
struct ovsdb_idl_column ovsrec_controller_columns[OVSREC_CONTROLLER_N_COLUMNS]
Definition: vswitch-idl.c:4980
#define CONST_CAST(TYPE, POINTER)
Definition: util.h:88
static struct aes128 key
Definition: uuid.c:34
void ovsdb_idl_txn_write_clone(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column, const struct ovsdb_datum *datum)
Definition: ovsdb-idl.c:2131
void ovsrec_controller_set_controller_burst_limit ( const struct ovsrec_controller row,
const int64_t controller_burst_limit,
size_t  n_controller_burst_limit 
)
4611 {
4612  struct ovsdb_datum datum;
4613  union ovsdb_atom key;
4614 
4615  ovs_assert(inited);
4616  if (n_controller_burst_limit) {
4617  datum.n = 1;
4618  datum.keys = &key;
4619  key.integer = *controller_burst_limit;
4620  } else {
4621  datum.n = 0;
4622  datum.keys = NULL;
4623  }
4624  datum.values = NULL;
4626 }
Definition: ovsdb-data.h:125
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: ovsdb-data.h:29
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:289
static bool inited
Definition: vswitch-idl.c:18
struct ovsdb_idl_column ovsrec_controller_columns[OVSREC_CONTROLLER_N_COLUMNS]
Definition: vswitch-idl.c:4980
static struct aes128 key
Definition: uuid.c:34
void ovsdb_idl_txn_write_clone(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column, const struct ovsdb_datum *datum)
Definition: ovsdb-idl.c:2131
void ovsrec_controller_set_controller_rate_limit ( const struct ovsrec_controller row,
const int64_t controller_rate_limit,
size_t  n_controller_rate_limit 
)
4639 {
4640  struct ovsdb_datum datum;
4641  union ovsdb_atom key;
4642 
4643  ovs_assert(inited);
4644  if (n_controller_rate_limit) {
4645  datum.n = 1;
4646  datum.keys = &key;
4647  key.integer = *controller_rate_limit;
4648  } else {
4649  datum.n = 0;
4650  datum.keys = NULL;
4651  }
4652  datum.values = NULL;
4654 }
Definition: vswitch-idl.h:345
Definition: ovsdb-data.h:125
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: ovsdb-data.h:29
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:289
static bool inited
Definition: vswitch-idl.c:18
struct ovsdb_idl_column ovsrec_controller_columns[OVSREC_CONTROLLER_N_COLUMNS]
Definition: vswitch-idl.c:4980
static struct aes128 key
Definition: uuid.c:34
void ovsdb_idl_txn_write_clone(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column, const struct ovsdb_datum *datum)
Definition: ovsdb-idl.c:2131
void ovsrec_controller_set_enable_async_messages ( const struct ovsrec_controller row,
const bool enable_async_messages,
size_t  n_enable_async_messages 
)
4665 {
4666  struct ovsdb_datum datum;
4667  union ovsdb_atom key;
4668 
4669  ovs_assert(inited);
4670  if (n_enable_async_messages) {
4671  datum.n = 1;
4672  datum.keys = &key;
4673  key.boolean = *enable_async_messages;
4674  } else {
4675  datum.n = 0;
4676  datum.keys = NULL;
4677  }
4678  datum.values = NULL;
4680 }
Definition: ovsdb-data.h:125
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: ovsdb-data.h:29
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:289
Definition: vswitch-idl.h:346
static bool inited
Definition: vswitch-idl.c:18
struct ovsdb_idl_column ovsrec_controller_columns[OVSREC_CONTROLLER_N_COLUMNS]
Definition: vswitch-idl.c:4980
static struct aes128 key
Definition: uuid.c:34
void ovsdb_idl_txn_write_clone(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column, const struct ovsdb_datum *datum)
Definition: ovsdb-idl.c:2131
void ovsrec_controller_set_external_ids ( const struct ovsrec_controller row,
const struct smap external_ids 
)
4688 {
4689  struct ovsdb_datum datum;
4690 
4691  ovs_assert(inited);
4692  if (external_ids) {
4693  struct smap_node *node;
4694  size_t i;
4695 
4696  datum.n = smap_count(external_ids);
4697  datum.keys = xmalloc(datum.n * sizeof *datum.keys);
4698  datum.values = xmalloc(datum.n * sizeof *datum.values);
4699 
4700  i = 0;
4701  SMAP_FOR_EACH (node, external_ids) {
4702  datum.keys[i].string = xstrdup(node->key);
4703  datum.values[i].string = xstrdup(node->value);
4704  i++;
4705  }
4707  } else {
4708  ovsdb_datum_init_empty(&datum);
4709  }
4712  &datum);
4713 }
char * value
Definition: smap.h:31
Definition: ovsdb-data.h:125
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: ovsdb-types.h:33
size_t ovsdb_datum_sort_unique(struct ovsdb_datum *datum, enum ovsdb_atomic_type key_type, enum ovsdb_atomic_type value_type)
Definition: ovsdb-data.c:1089
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:289
#define SMAP_FOR_EACH(SMAP_NODE, SMAP)
Definition: smap.h:36
void * xmalloc(size_t size)
Definition: util.c:110
char * xstrdup(const char *s)
Definition: util.c:149
static bool inited
Definition: vswitch-idl.c:18
struct hmap_node node
Definition: smap.h:29
Definition: smap.h:28
Definition: vswitch-idl.h:347
struct ovsdb_idl_column ovsrec_controller_columns[OVSREC_CONTROLLER_N_COLUMNS]
Definition: vswitch-idl.c:4980
size_t smap_count(const struct smap *smap)
Definition: smap.c:238
void ovsdb_datum_init_empty(struct ovsdb_datum *datum)
Definition: ovsdb-data.c:835
void ovsdb_idl_txn_write(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column, struct ovsdb_datum *datum)
Definition: ovsdb-idl.c:2123
char * key
Definition: smap.h:30
void ovsrec_controller_set_inactivity_probe ( const struct ovsrec_controller row,
const int64_t inactivity_probe,
size_t  n_inactivity_probe 
)
4725 {
4726  struct ovsdb_datum datum;
4727  union ovsdb_atom key;
4728 
4729  ovs_assert(inited);
4730  if (n_inactivity_probe) {
4731  datum.n = 1;
4732  datum.keys = &key;
4733  key.integer = *inactivity_probe;
4734  } else {
4735  datum.n = 0;
4736  datum.keys = NULL;
4737  }
4738  datum.values = NULL;
4740 }
Definition: ovsdb-data.h:125
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: ovsdb-data.h:29
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:289
Definition: vswitch-idl.h:348
static bool inited
Definition: vswitch-idl.c:18
struct ovsdb_idl_column ovsrec_controller_columns[OVSREC_CONTROLLER_N_COLUMNS]
Definition: vswitch-idl.c:4980
static struct aes128 key
Definition: uuid.c:34
void ovsdb_idl_txn_write_clone(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column, const struct ovsdb_datum *datum)
Definition: ovsdb-idl.c:2131
void ovsrec_controller_set_is_connected ( const struct ovsrec_controller row,
bool  is_connected 
)
4748 {
4749  struct ovsdb_datum datum;
4750  union ovsdb_atom key;
4751 
4752  ovs_assert(inited);
4753  datum.n = 1;
4754  datum.keys = &key;
4755  key.boolean = is_connected;
4756  datum.values = NULL;
4758 }
Definition: ovsdb-data.h:125
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: ovsdb-data.h:29
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:289
static bool inited
Definition: vswitch-idl.c:18
struct ovsdb_idl_column ovsrec_controller_columns[OVSREC_CONTROLLER_N_COLUMNS]
Definition: vswitch-idl.c:4980
Definition: vswitch-idl.h:349
static struct aes128 key
Definition: uuid.c:34
void ovsdb_idl_txn_write_clone(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column, const struct ovsdb_datum *datum)
Definition: ovsdb-idl.c:2131
void ovsrec_controller_set_local_gateway ( const struct ovsrec_controller row,
const char *  local_gateway 
)
4769 {
4770  struct ovsdb_datum datum;
4771  union ovsdb_atom key;
4772 
4773  ovs_assert(inited);
4774  if (local_gateway) {
4775  datum.n = 1;
4776  datum.keys = &key;
4777  key.string = CONST_CAST(char *, local_gateway);
4778  } else {
4779  datum.n = 0;
4780  datum.keys = NULL;
4781  }
4782  datum.values = NULL;
4784 }
Definition: ovsdb-data.h:125
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: ovsdb-data.h:29
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:289
static bool inited
Definition: vswitch-idl.c:18
struct ovsdb_idl_column ovsrec_controller_columns[OVSREC_CONTROLLER_N_COLUMNS]
Definition: vswitch-idl.c:4980
Definition: vswitch-idl.h:350
#define CONST_CAST(TYPE, POINTER)
Definition: util.h:88
static struct aes128 key
Definition: uuid.c:34
void ovsdb_idl_txn_write_clone(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column, const struct ovsdb_datum *datum)
Definition: ovsdb-idl.c:2131
void ovsrec_controller_set_local_ip ( const struct ovsrec_controller row,
const char *  local_ip 
)
4795 {
4796  struct ovsdb_datum datum;
4797  union ovsdb_atom key;
4798 
4799  ovs_assert(inited);
4800  if (local_ip) {
4801  datum.n = 1;
4802  datum.keys = &key;
4803  key.string = CONST_CAST(char *, local_ip);
4804  } else {
4805  datum.n = 0;
4806  datum.keys = NULL;
4807  }
4808  datum.values = NULL;
4810 }
Definition: ovsdb-data.h:125
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: vswitch-idl.h:351
Definition: ovsdb-data.h:29
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:289
static bool inited
Definition: vswitch-idl.c:18
struct ovsdb_idl_column ovsrec_controller_columns[OVSREC_CONTROLLER_N_COLUMNS]
Definition: vswitch-idl.c:4980
#define CONST_CAST(TYPE, POINTER)
Definition: util.h:88
static struct aes128 key
Definition: uuid.c:34
void ovsdb_idl_txn_write_clone(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column, const struct ovsdb_datum *datum)
Definition: ovsdb-idl.c:2131
void ovsrec_controller_set_local_netmask ( const struct ovsrec_controller row,
const char *  local_netmask 
)
4821 {
4822  struct ovsdb_datum datum;
4823  union ovsdb_atom key;
4824 
4825  ovs_assert(inited);
4826  if (local_netmask) {
4827  datum.n = 1;
4828  datum.keys = &key;
4829  key.string = CONST_CAST(char *, local_netmask);
4830  } else {
4831  datum.n = 0;
4832  datum.keys = NULL;
4833  }
4834  datum.values = NULL;
4836 }
Definition: ovsdb-data.h:125
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: vswitch-idl.h:352
Definition: ovsdb-data.h:29
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:289
static bool inited
Definition: vswitch-idl.c:18
struct ovsdb_idl_column ovsrec_controller_columns[OVSREC_CONTROLLER_N_COLUMNS]
Definition: vswitch-idl.c:4980
#define CONST_CAST(TYPE, POINTER)
Definition: util.h:88
static struct aes128 key
Definition: uuid.c:34
void ovsdb_idl_txn_write_clone(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column, const struct ovsdb_datum *datum)
Definition: ovsdb-idl.c:2131
void ovsrec_controller_set_max_backoff ( const struct ovsrec_controller row,
const int64_t max_backoff,
size_t  n_max_backoff 
)
4849 {
4850  struct ovsdb_datum datum;
4851  union ovsdb_atom key;
4852 
4853  ovs_assert(inited);
4854  if (n_max_backoff) {
4855  datum.n = 1;
4856  datum.keys = &key;
4857  key.integer = *max_backoff;
4858  } else {
4859  datum.n = 0;
4860  datum.keys = NULL;
4861  }
4862  datum.values = NULL;
4864 }
Definition: ovsdb-data.h:125
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: ovsdb-data.h:29
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:289
Definition: vswitch-idl.h:353
static bool inited
Definition: vswitch-idl.c:18
struct ovsdb_idl_column ovsrec_controller_columns[OVSREC_CONTROLLER_N_COLUMNS]
Definition: vswitch-idl.c:4980
static struct aes128 key
Definition: uuid.c:34
void ovsdb_idl_txn_write_clone(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column, const struct ovsdb_datum *datum)
Definition: ovsdb-idl.c:2131
void ovsrec_controller_set_other_config ( const struct ovsrec_controller row,
const struct smap other_config 
)
4872 {
4873  struct ovsdb_datum datum;
4874 
4875  ovs_assert(inited);
4876  if (other_config) {
4877  struct smap_node *node;
4878  size_t i;
4879 
4880  datum.n = smap_count(other_config);
4881  datum.keys = xmalloc(datum.n * sizeof *datum.keys);
4882  datum.values = xmalloc(datum.n * sizeof *datum.values);
4883 
4884  i = 0;
4885  SMAP_FOR_EACH (node, other_config) {
4886  datum.keys[i].string = xstrdup(node->key);
4887  datum.values[i].string = xstrdup(node->value);
4888  i++;
4889  }
4891  } else {
4892  ovsdb_datum_init_empty(&datum);
4893  }
4896  &datum);
4897 }
char * value
Definition: smap.h:31
Definition: ovsdb-data.h:125
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: ovsdb-types.h:33
size_t ovsdb_datum_sort_unique(struct ovsdb_datum *datum, enum ovsdb_atomic_type key_type, enum ovsdb_atomic_type value_type)
Definition: ovsdb-data.c:1089
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:289
#define SMAP_FOR_EACH(SMAP_NODE, SMAP)
Definition: smap.h:36
void * xmalloc(size_t size)
Definition: util.c:110
char * xstrdup(const char *s)
Definition: util.c:149
static bool inited
Definition: vswitch-idl.c:18
struct hmap_node node
Definition: smap.h:29
Definition: smap.h:28
struct ovsdb_idl_column ovsrec_controller_columns[OVSREC_CONTROLLER_N_COLUMNS]
Definition: vswitch-idl.c:4980
Definition: vswitch-idl.h:354
size_t smap_count(const struct smap *smap)
Definition: smap.c:238
void ovsdb_datum_init_empty(struct ovsdb_datum *datum)
Definition: ovsdb-data.c:835
void ovsdb_idl_txn_write(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column, struct ovsdb_datum *datum)
Definition: ovsdb-idl.c:2123
char * key
Definition: smap.h:30
void ovsrec_controller_set_role ( const struct ovsrec_controller row,
const char *  role 
)
4911 {
4912  struct ovsdb_datum datum;
4913  union ovsdb_atom key;
4914 
4915  ovs_assert(inited);
4916  if (role) {
4917  datum.n = 1;
4918  datum.keys = &key;
4919  key.string = CONST_CAST(char *, role);
4920  } else {
4921  datum.n = 0;
4922  datum.keys = NULL;
4923  }
4924  datum.values = NULL;
4926 }
Definition: ovsdb-data.h:125
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: ovsdb-data.h:29
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:289
Definition: vswitch-idl.h:355
static bool inited
Definition: vswitch-idl.c:18
struct ovsdb_idl_column ovsrec_controller_columns[OVSREC_CONTROLLER_N_COLUMNS]
Definition: vswitch-idl.c:4980
#define CONST_CAST(TYPE, POINTER)
Definition: util.h:88
static struct aes128 key
Definition: uuid.c:34
void ovsdb_idl_txn_write_clone(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column, const struct ovsdb_datum *datum)
Definition: ovsdb-idl.c:2131
void ovsrec_controller_set_status ( const struct ovsrec_controller row,
const struct smap status 
)
4934 {
4935  struct ovsdb_datum datum;
4936 
4937  ovs_assert(inited);
4938  if (status) {
4939  struct smap_node *node;
4940  size_t i;
4941 
4942  datum.n = smap_count(status);
4943  datum.keys = xmalloc(datum.n * sizeof *datum.keys);
4944  datum.values = xmalloc(datum.n * sizeof *datum.values);
4945 
4946  i = 0;
4947  SMAP_FOR_EACH (node, status) {
4948  datum.keys[i].string = xstrdup(node->key);
4949  datum.values[i].string = xstrdup(node->value);
4950  i++;
4951  }
4953  } else {
4954  ovsdb_datum_init_empty(&datum);
4955  }
4958  &datum);
4959 }
char * value
Definition: smap.h:31
Definition: ovsdb-data.h:125
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: vswitch-idl.h:356
Definition: ovsdb-types.h:33
size_t ovsdb_datum_sort_unique(struct ovsdb_datum *datum, enum ovsdb_atomic_type key_type, enum ovsdb_atomic_type value_type)
Definition: ovsdb-data.c:1089
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:289
#define SMAP_FOR_EACH(SMAP_NODE, SMAP)
Definition: smap.h:36
void * xmalloc(size_t size)
Definition: util.c:110
char * xstrdup(const char *s)
Definition: util.c:149
static bool inited
Definition: vswitch-idl.c:18
struct hmap_node node
Definition: smap.h:29
Definition: smap.h:28
struct ovsdb_idl_column ovsrec_controller_columns[OVSREC_CONTROLLER_N_COLUMNS]
Definition: vswitch-idl.c:4980
size_t smap_count(const struct smap *smap)
Definition: smap.c:238
void ovsdb_datum_init_empty(struct ovsdb_datum *datum)
Definition: ovsdb-data.c:835
void ovsdb_idl_txn_write(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column, struct ovsdb_datum *datum)
Definition: ovsdb-idl.c:2123
char * key
Definition: smap.h:30
void ovsrec_controller_set_target ( const struct ovsrec_controller row,
const char *  target 
)
4968 {
4969  struct ovsdb_datum datum;
4970  union ovsdb_atom key;
4971 
4972  ovs_assert(inited);
4973  datum.n = 1;
4974  datum.keys = &key;
4975  key.string = CONST_CAST(char *, target);
4976  datum.values = NULL;
4978 }
Definition: ovsdb-data.h:125
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: vswitch-idl.h:357
Definition: ovsdb-data.h:29
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:289
static bool inited
Definition: vswitch-idl.c:18
struct in6_addr target
Definition: flow.h:153
struct ovsdb_idl_column ovsrec_controller_columns[OVSREC_CONTROLLER_N_COLUMNS]
Definition: vswitch-idl.c:4980
#define CONST_CAST(TYPE, POINTER)
Definition: util.h:88
static struct aes128 key
Definition: uuid.c:34
void ovsdb_idl_txn_write_clone(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column, const struct ovsdb_datum *datum)
Definition: ovsdb-idl.c:2131
static void ovsrec_controller_unparse_connection_mode ( struct ovsdb_idl_row *row  OVS_UNUSED)
static
3499 {
3500  /* Nothing to do. */
3501 }
static void ovsrec_controller_unparse_controller_burst_limit ( struct ovsdb_idl_row row_)
static
3505 {
3506  struct ovsrec_controller *row = ovsrec_controller_cast(row_);
3507 
3508  ovs_assert(inited);
3509  free(row->controller_burst_limit);
3510 }
#define ovs_assert(CONDITION)
Definition: util.h:73
static bool inited
Definition: vswitch-idl.c:18
int64_t * controller_burst_limit
Definition: vswitch-idl.h:295
static struct ovsrec_controller * ovsrec_controller_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:34
Definition: vswitch-idl.h:288
static void ovsrec_controller_unparse_controller_rate_limit ( struct ovsdb_idl_row row_)
static
3514 {
3515  struct ovsrec_controller *row = ovsrec_controller_cast(row_);
3516 
3517  ovs_assert(inited);
3518  free(row->controller_rate_limit);
3519 }
#define ovs_assert(CONDITION)
Definition: util.h:73
int64_t * controller_rate_limit
Definition: vswitch-idl.h:299
static bool inited
Definition: vswitch-idl.c:18
static struct ovsrec_controller * ovsrec_controller_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:34
Definition: vswitch-idl.h:288
static void ovsrec_controller_unparse_enable_async_messages ( struct ovsdb_idl_row row_)
static
3523 {
3524  struct ovsrec_controller *row = ovsrec_controller_cast(row_);
3525 
3526  ovs_assert(inited);
3527  free(row->enable_async_messages);
3528 }
#define ovs_assert(CONDITION)
Definition: util.h:73
bool * enable_async_messages
Definition: vswitch-idl.h:303
static bool inited
Definition: vswitch-idl.c:18
static struct ovsrec_controller * ovsrec_controller_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:34
Definition: vswitch-idl.h:288
static void ovsrec_controller_unparse_external_ids ( struct ovsdb_idl_row row_)
static
3532 {
3533  struct ovsrec_controller *row = ovsrec_controller_cast(row_);
3534 
3535  ovs_assert(inited);
3536  smap_destroy(&row->external_ids);
3537 }
#define ovs_assert(CONDITION)
Definition: util.h:73
struct smap external_ids
Definition: vswitch-idl.h:307
static bool inited
Definition: vswitch-idl.c:18
void smap_destroy(struct smap *smap)
Definition: smap.c:39
static struct ovsrec_controller * ovsrec_controller_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:34
Definition: vswitch-idl.h:288
static void ovsrec_controller_unparse_inactivity_probe ( struct ovsdb_idl_row row_)
static
3541 {
3542  struct ovsrec_controller *row = ovsrec_controller_cast(row_);
3543 
3544  ovs_assert(inited);
3545  free(row->inactivity_probe);
3546 }
#define ovs_assert(CONDITION)
Definition: util.h:73
static bool inited
Definition: vswitch-idl.c:18
int64_t * inactivity_probe
Definition: vswitch-idl.h:310
static struct ovsrec_controller * ovsrec_controller_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:34
Definition: vswitch-idl.h:288
static void ovsrec_controller_unparse_is_connected ( struct ovsdb_idl_row *row  OVS_UNUSED)
static
3550 {
3551  /* Nothing to do. */
3552 }
static void ovsrec_controller_unparse_local_gateway ( struct ovsdb_idl_row *row  OVS_UNUSED)
static
3556 {
3557  /* Nothing to do. */
3558 }
static void ovsrec_controller_unparse_local_ip ( struct ovsdb_idl_row *row  OVS_UNUSED)
static
3562 {
3563  /* Nothing to do. */
3564 }
static void ovsrec_controller_unparse_local_netmask ( struct ovsdb_idl_row *row  OVS_UNUSED)
static
3568 {
3569  /* Nothing to do. */
3570 }
static void ovsrec_controller_unparse_max_backoff ( struct ovsdb_idl_row row_)
static
3574 {
3575  struct ovsrec_controller *row = ovsrec_controller_cast(row_);
3576 
3577  ovs_assert(inited);
3578  free(row->max_backoff);
3579 }
#define ovs_assert(CONDITION)
Definition: util.h:73
static bool inited
Definition: vswitch-idl.c:18
static struct ovsrec_controller * ovsrec_controller_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:34
Definition: vswitch-idl.h:288
int64_t * max_backoff
Definition: vswitch-idl.h:326
static void ovsrec_controller_unparse_other_config ( struct ovsdb_idl_row row_)
static
3583 {
3584  struct ovsrec_controller *row = ovsrec_controller_cast(row_);
3585 
3586  ovs_assert(inited);
3587  smap_destroy(&row->other_config);
3588 }
#define ovs_assert(CONDITION)
Definition: util.h:73
struct smap other_config
Definition: vswitch-idl.h:330
static bool inited
Definition: vswitch-idl.c:18
void smap_destroy(struct smap *smap)
Definition: smap.c:39
static struct ovsrec_controller * ovsrec_controller_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:34
Definition: vswitch-idl.h:288
static void ovsrec_controller_unparse_role ( struct ovsdb_idl_row *row  OVS_UNUSED)
static
3592 {
3593  /* Nothing to do. */
3594 }
static void ovsrec_controller_unparse_status ( struct ovsdb_idl_row row_)
static
3598 {
3599  struct ovsrec_controller *row = ovsrec_controller_cast(row_);
3600 
3601  ovs_assert(inited);
3602  smap_destroy(&row->status);
3603 }
#define ovs_assert(CONDITION)
Definition: util.h:73
struct smap status
Definition: vswitch-idl.h:336
static bool inited
Definition: vswitch-idl.c:18
void smap_destroy(struct smap *smap)
Definition: smap.c:39
static struct ovsrec_controller * ovsrec_controller_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:34
Definition: vswitch-idl.h:288
static void ovsrec_controller_unparse_target ( struct ovsdb_idl_row *row  OVS_UNUSED)
static
3607 {
3608  /* Nothing to do. */
3609 }
void ovsrec_controller_verify_connection_mode ( const struct ovsrec_controller row)
3705 {
3706  ovs_assert(inited);
3708 }
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: vswitch-idl.h:343
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:289
static bool inited
Definition: vswitch-idl.c:18
struct ovsdb_idl_column ovsrec_controller_columns[OVSREC_CONTROLLER_N_COLUMNS]
Definition: vswitch-idl.c:4980
void ovsdb_idl_txn_verify(const struct ovsdb_idl_row *, const struct ovsdb_idl_column *)
Definition: ovsdb-idl.c:2168
void ovsrec_controller_verify_controller_burst_limit ( const struct ovsrec_controller row)
3737 {
3738  ovs_assert(inited);
3740 }
#define ovs_assert(CONDITION)
Definition: util.h:73
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:289
static bool inited
Definition: vswitch-idl.c:18
struct ovsdb_idl_column ovsrec_controller_columns[OVSREC_CONTROLLER_N_COLUMNS]
Definition: vswitch-idl.c:4980
void ovsdb_idl_txn_verify(const struct ovsdb_idl_row *, const struct ovsdb_idl_column *)
Definition: ovsdb-idl.c:2168
void ovsrec_controller_verify_controller_rate_limit ( const struct ovsrec_controller row)
3769 {
3770  ovs_assert(inited);
3772 }
Definition: vswitch-idl.h:345
#define ovs_assert(CONDITION)
Definition: util.h:73
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:289
static bool inited
Definition: vswitch-idl.c:18
struct ovsdb_idl_column ovsrec_controller_columns[OVSREC_CONTROLLER_N_COLUMNS]
Definition: vswitch-idl.c:4980
void ovsdb_idl_txn_verify(const struct ovsdb_idl_row *, const struct ovsdb_idl_column *)
Definition: ovsdb-idl.c:2168
void ovsrec_controller_verify_enable_async_messages ( const struct ovsrec_controller row)
3801 {
3802  ovs_assert(inited);
3804 }
#define ovs_assert(CONDITION)
Definition: util.h:73
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:289
Definition: vswitch-idl.h:346
static bool inited
Definition: vswitch-idl.c:18
struct ovsdb_idl_column ovsrec_controller_columns[OVSREC_CONTROLLER_N_COLUMNS]
Definition: vswitch-idl.c:4980
void ovsdb_idl_txn_verify(const struct ovsdb_idl_row *, const struct ovsdb_idl_column *)
Definition: ovsdb-idl.c:2168
void ovsrec_controller_verify_external_ids ( const struct ovsrec_controller row)
3833 {
3834  ovs_assert(inited);
3836 }
#define ovs_assert(CONDITION)
Definition: util.h:73
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:289
static bool inited
Definition: vswitch-idl.c:18
Definition: vswitch-idl.h:347
struct ovsdb_idl_column ovsrec_controller_columns[OVSREC_CONTROLLER_N_COLUMNS]
Definition: vswitch-idl.c:4980
void ovsdb_idl_txn_verify(const struct ovsdb_idl_row *, const struct ovsdb_idl_column *)
Definition: ovsdb-idl.c:2168
void ovsrec_controller_verify_inactivity_probe ( const struct ovsrec_controller row)
3865 {
3866  ovs_assert(inited);
3868 }
#define ovs_assert(CONDITION)
Definition: util.h:73
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:289
Definition: vswitch-idl.h:348
static bool inited
Definition: vswitch-idl.c:18
struct ovsdb_idl_column ovsrec_controller_columns[OVSREC_CONTROLLER_N_COLUMNS]
Definition: vswitch-idl.c:4980
void ovsdb_idl_txn_verify(const struct ovsdb_idl_row *, const struct ovsdb_idl_column *)
Definition: ovsdb-idl.c:2168
void ovsrec_controller_verify_is_connected ( const struct ovsrec_controller row)
3897 {
3898  ovs_assert(inited);
3900 }
#define ovs_assert(CONDITION)
Definition: util.h:73
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:289
static bool inited
Definition: vswitch-idl.c:18
struct ovsdb_idl_column ovsrec_controller_columns[OVSREC_CONTROLLER_N_COLUMNS]
Definition: vswitch-idl.c:4980
Definition: vswitch-idl.h:349
void ovsdb_idl_txn_verify(const struct ovsdb_idl_row *, const struct ovsdb_idl_column *)
Definition: ovsdb-idl.c:2168
void ovsrec_controller_verify_local_gateway ( const struct ovsrec_controller row)
3929 {
3930  ovs_assert(inited);
3932 }
#define ovs_assert(CONDITION)
Definition: util.h:73
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:289
static bool inited
Definition: vswitch-idl.c:18
struct ovsdb_idl_column ovsrec_controller_columns[OVSREC_CONTROLLER_N_COLUMNS]
Definition: vswitch-idl.c:4980
void ovsdb_idl_txn_verify(const struct ovsdb_idl_row *, const struct ovsdb_idl_column *)
Definition: ovsdb-idl.c:2168
Definition: vswitch-idl.h:350
void ovsrec_controller_verify_local_ip ( const struct ovsrec_controller row)
3961 {
3962  ovs_assert(inited);
3964 }
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: vswitch-idl.h:351
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:289
static bool inited
Definition: vswitch-idl.c:18
struct ovsdb_idl_column ovsrec_controller_columns[OVSREC_CONTROLLER_N_COLUMNS]
Definition: vswitch-idl.c:4980
void ovsdb_idl_txn_verify(const struct ovsdb_idl_row *, const struct ovsdb_idl_column *)
Definition: ovsdb-idl.c:2168
void ovsrec_controller_verify_local_netmask ( const struct ovsrec_controller row)
3993 {
3994  ovs_assert(inited);
3996 }
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: vswitch-idl.h:352
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:289
static bool inited
Definition: vswitch-idl.c:18
struct ovsdb_idl_column ovsrec_controller_columns[OVSREC_CONTROLLER_N_COLUMNS]
Definition: vswitch-idl.c:4980
void ovsdb_idl_txn_verify(const struct ovsdb_idl_row *, const struct ovsdb_idl_column *)
Definition: ovsdb-idl.c:2168
void ovsrec_controller_verify_max_backoff ( const struct ovsrec_controller row)
4025 {
4026  ovs_assert(inited);
4028 }
#define ovs_assert(CONDITION)
Definition: util.h:73
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:289
Definition: vswitch-idl.h:353
static bool inited
Definition: vswitch-idl.c:18
struct ovsdb_idl_column ovsrec_controller_columns[OVSREC_CONTROLLER_N_COLUMNS]
Definition: vswitch-idl.c:4980
void ovsdb_idl_txn_verify(const struct ovsdb_idl_row *, const struct ovsdb_idl_column *)
Definition: ovsdb-idl.c:2168
void ovsrec_controller_verify_other_config ( const struct ovsrec_controller row)
4057 {
4058  ovs_assert(inited);
4060 }
#define ovs_assert(CONDITION)
Definition: util.h:73
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:289
static bool inited
Definition: vswitch-idl.c:18
struct ovsdb_idl_column ovsrec_controller_columns[OVSREC_CONTROLLER_N_COLUMNS]
Definition: vswitch-idl.c:4980
Definition: vswitch-idl.h:354
void ovsdb_idl_txn_verify(const struct ovsdb_idl_row *, const struct ovsdb_idl_column *)
Definition: ovsdb-idl.c:2168
void ovsrec_controller_verify_role ( const struct ovsrec_controller row)
4089 {
4090  ovs_assert(inited);
4092 }
#define ovs_assert(CONDITION)
Definition: util.h:73
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:289
Definition: vswitch-idl.h:355
static bool inited
Definition: vswitch-idl.c:18
struct ovsdb_idl_column ovsrec_controller_columns[OVSREC_CONTROLLER_N_COLUMNS]
Definition: vswitch-idl.c:4980
void ovsdb_idl_txn_verify(const struct ovsdb_idl_row *, const struct ovsdb_idl_column *)
Definition: ovsdb-idl.c:2168
void ovsrec_controller_verify_status ( const struct ovsrec_controller row)
4121 {
4122  ovs_assert(inited);
4124 }
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: vswitch-idl.h:356
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:289
static bool inited
Definition: vswitch-idl.c:18
struct ovsdb_idl_column ovsrec_controller_columns[OVSREC_CONTROLLER_N_COLUMNS]
Definition: vswitch-idl.c:4980
void ovsdb_idl_txn_verify(const struct ovsdb_idl_row *, const struct ovsdb_idl_column *)
Definition: ovsdb-idl.c:2168
void ovsrec_controller_verify_target ( const struct ovsrec_controller row)
4153 {
4154  ovs_assert(inited);
4156 }
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: vswitch-idl.h:357
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:289
static bool inited
Definition: vswitch-idl.c:18
struct ovsdb_idl_column ovsrec_controller_columns[OVSREC_CONTROLLER_N_COLUMNS]
Definition: vswitch-idl.c:4980
void ovsdb_idl_txn_verify(const struct ovsdb_idl_row *, const struct ovsdb_idl_column *)
Definition: ovsdb-idl.c:2168
static struct ovsrec_flow_sample_collector_set* ovsrec_flow_sample_collector_set_cast ( const struct ovsdb_idl_row row)
static
41 {
42  return row ? CONTAINER_OF(row, struct ovsrec_flow_sample_collector_set, header_) : NULL;
43 }
Definition: vswitch-idl.h:445
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:289
#define CONTAINER_OF(POINTER, STRUCT, MEMBER)
Definition: util.h:207
static void ovsrec_flow_sample_collector_set_columns_init ( void  )
static
5672 {
5673  struct ovsdb_idl_column *c;
5674 
5675  /* Initialize ovsrec_flow_sample_collector_set_col_bridge. */
5677  c->name = "bridge";
5679  c->type.key.u.uuid.refTableName = "Bridge";
5680  c->type.key.u.uuid.refType = OVSDB_REF_STRONG;
5682  c->type.n_min = 1;
5683  c->type.n_max = 1;
5684  c->mutable = true;
5687 
5688  /* Initialize ovsrec_flow_sample_collector_set_col_external_ids. */
5690  c->name = "external_ids";
5692  c->type.key.u.string.minLen = 0;
5694  c->type.value.u.string.minLen = 0;
5695  c->type.n_min = 0;
5696  c->type.n_max = UINT_MAX;
5697  c->mutable = true;
5700 
5701  /* Initialize ovsrec_flow_sample_collector_set_col_id. */
5703  c->name = "id";
5705  c->type.key.u.integer.min = INT64_C(0);
5706  c->type.key.u.integer.max = INT64_C(4294967295);
5708  c->type.n_min = 1;
5709  c->type.n_max = 1;
5710  c->mutable = true;
5713 
5714  /* Initialize ovsrec_flow_sample_collector_set_col_ipfix. */
5716  c->name = "ipfix";
5718  c->type.key.u.uuid.refTableName = "IPFIX";
5719  c->type.key.u.uuid.refType = OVSDB_REF_STRONG;
5721  c->type.n_min = 0;
5722  c->type.n_max = 1;
5723  c->mutable = true;
5726 }
void(* unparse)(struct ovsdb_idl_row *)
Definition: ovsdb-idl-provider.h:46
Definition: ovsdb-idl-provider.h:41
struct ovsdb_base_type::@145::ovsdb_string_constraints string
void ovsdb_base_type_init(struct ovsdb_base_type *base, enum ovsdb_atomic_type type)
Definition: ovsdb-types.c:117
union ovsdb_base_type::@145 u
static void ovsrec_flow_sample_collector_set_parse_external_ids(struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
Definition: vswitch-idl.c:5199
static void ovsrec_flow_sample_collector_set_parse_id(struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
Definition: vswitch-idl.c:5214
unsigned int n_min
Definition: ovsdb-types.h:136
struct ovsdb_base_type key
Definition: ovsdb-types.h:134
void(* parse)(struct ovsdb_idl_row *, const struct ovsdb_datum *)
Definition: ovsdb-idl-provider.h:45
unsigned int n_max
Definition: ovsdb-types.h:137
#define ovsrec_flow_sample_collector_set_col_id
Definition: vswitch-idl.h:471
Definition: ovsdb-types.h:33
struct ovsdb_base_type value
Definition: ovsdb-types.h:135
char * name
Definition: ovsdb-idl-provider.h:42
Definition: ovsdb-types.h:34
static void ovsrec_flow_sample_collector_set_unparse_ipfix(struct ovsdb_idl_row *row OVS_UNUSED)
Definition: vswitch-idl.c:5261
Definition: ovsdb-types.h:30
#define ovsrec_flow_sample_collector_set_col_bridge
Definition: vswitch-idl.h:469
static void ovsrec_flow_sample_collector_set_parse_ipfix(struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
Definition: vswitch-idl.c:5227
struct ovsdb_type type
Definition: ovsdb-idl-provider.h:43
struct ovsdb_base_type::@145::ovsdb_uuid_constraints uuid
bool mutable
Definition: ovsdb-idl-provider.h:44
static void ovsrec_flow_sample_collector_set_unparse_id(struct ovsdb_idl_row *row OVS_UNUSED)
Definition: vswitch-idl.c:5255
Definition: ovsdb-types.h:29
struct ovsdb_base_type::@145::ovsdb_integer_constraints integer
static void ovsrec_flow_sample_collector_set_parse_bridge(struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
Definition: vswitch-idl.c:5186
#define ovsrec_flow_sample_collector_set_col_external_ids
Definition: vswitch-idl.h:470
Definition: ovsdb-types.h:48
static void ovsrec_flow_sample_collector_set_unparse_external_ids(struct ovsdb_idl_row *row_)
Definition: vswitch-idl.c:5246
static void ovsrec_flow_sample_collector_set_unparse_bridge(struct ovsdb_idl_row *row OVS_UNUSED)
Definition: vswitch-idl.c:5240
#define ovsrec_flow_sample_collector_set_col_ipfix
Definition: vswitch-idl.h:472
void ovsrec_flow_sample_collector_set_delete ( const struct ovsrec_flow_sample_collector_set row)
5314 {
5316 }
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:446
void ovsdb_idl_txn_delete(const struct ovsdb_idl_row *row_)
Definition: ovsdb-idl.c:2208
const struct ovsrec_flow_sample_collector_set* ovsrec_flow_sample_collector_set_first ( const struct ovsdb_idl idl)
5296 {
5298 }
struct ovsdb_idl_table_class ovsrec_table_classes[OVSREC_N_TABLES]
Definition: vswitch-idl.c:21482
static struct ovsrec_flow_sample_collector_set * ovsrec_flow_sample_collector_set_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:40
Definition: vswitch-idl.h:1917
const struct ovsdb_idl_row * ovsdb_idl_first_row(const struct ovsdb_idl *idl, const struct ovsdb_idl_table_class *table_class)
Definition: ovsdb-idl.c:1290
const struct ovsdb_datum* ovsrec_flow_sample_collector_set_get_bridge ( const struct ovsrec_flow_sample_collector_set row,
enum ovsdb_atomic_type key_type  OVS_UNUSED 
)
5481 {
5482  ovs_assert(key_type == OVSDB_TYPE_UUID);
5484 }
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: ovsdb-types.h:34
#define ovsrec_flow_sample_collector_set_col_bridge
Definition: vswitch-idl.h:469
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:446
const struct ovsdb_datum * ovsdb_idl_read(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column)
Definition: ovsdb-idl.c:1320
const struct ovsdb_datum* ovsrec_flow_sample_collector_set_get_external_ids ( const struct ovsrec_flow_sample_collector_set row,
enum ovsdb_atomic_type key_type  OVS_UNUSED,
enum ovsdb_atomic_type value_type  OVS_UNUSED 
)
5510 {
5511  ovs_assert(key_type == OVSDB_TYPE_STRING);
5512  ovs_assert(value_type == OVSDB_TYPE_STRING);
5514 }
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: ovsdb-types.h:33
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:446
const struct ovsdb_datum * ovsdb_idl_read(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column)
Definition: ovsdb-idl.c:1320
#define ovsrec_flow_sample_collector_set_col_external_ids
Definition: vswitch-idl.h:470
const struct ovsrec_flow_sample_collector_set* ovsrec_flow_sample_collector_set_get_for_uuid ( const struct ovsdb_idl idl,
const struct uuid uuid 
)
5284 {
5286 }
const struct ovsdb_idl_row * ovsdb_idl_get_row_for_uuid(const struct ovsdb_idl *idl, const struct ovsdb_idl_table_class *tc, const struct uuid *uuid)
Definition: ovsdb-idl.c:1262
struct ovsdb_idl_table_class ovsrec_table_classes[OVSREC_N_TABLES]
Definition: vswitch-idl.c:21482
static struct ovsrec_flow_sample_collector_set * ovsrec_flow_sample_collector_set_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:40
Definition: vswitch-idl.h:1917
const struct ovsdb_datum* ovsrec_flow_sample_collector_set_get_id ( const struct ovsrec_flow_sample_collector_set row,
enum ovsdb_atomic_type key_type  OVS_UNUSED 
)
5538 {
5539  ovs_assert(key_type == OVSDB_TYPE_INTEGER);
5541 }
#define ovs_assert(CONDITION)
Definition: util.h:73
#define ovsrec_flow_sample_collector_set_col_id
Definition: vswitch-idl.h:471
Definition: ovsdb-types.h:30
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:446
const struct ovsdb_datum * ovsdb_idl_read(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column)
Definition: ovsdb-idl.c:1320
const struct ovsdb_datum* ovsrec_flow_sample_collector_set_get_ipfix ( const struct ovsrec_flow_sample_collector_set row,
enum ovsdb_atomic_type key_type  OVS_UNUSED 
)
5565 {
5566  ovs_assert(key_type == OVSDB_TYPE_UUID);
5568 }
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: ovsdb-types.h:34
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:446
const struct ovsdb_datum * ovsdb_idl_read(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column)
Definition: ovsdb-idl.c:1320
#define ovsrec_flow_sample_collector_set_col_ipfix
Definition: vswitch-idl.h:472
void ovsrec_flow_sample_collector_set_init ( struct ovsrec_flow_sample_collector_set row)
5275 {
5276  memset(row, 0, sizeof *row);
5277  smap_init(&row->external_ids);
5278 }
void smap_init(struct smap *smap)
Definition: smap.c:33
struct smap external_ids
Definition: vswitch-idl.h:452
static void ovsrec_flow_sample_collector_set_init__ ( struct ovsdb_idl_row row)
static
5268 {
5270 }
void ovsrec_flow_sample_collector_set_init(struct ovsrec_flow_sample_collector_set *row)
Definition: vswitch-idl.c:5274
static struct ovsrec_flow_sample_collector_set * ovsrec_flow_sample_collector_set_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:40
struct ovsrec_flow_sample_collector_set* ovsrec_flow_sample_collector_set_insert ( struct ovsdb_idl_txn txn)
5327 {
5329 }
struct ovsdb_idl_table_class ovsrec_table_classes[OVSREC_N_TABLES]
Definition: vswitch-idl.c:21482
static struct ovsrec_flow_sample_collector_set * ovsrec_flow_sample_collector_set_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:40
const struct ovsdb_idl_row * ovsdb_idl_txn_insert(struct ovsdb_idl_txn *txn, const struct ovsdb_idl_table_class *class, const struct uuid *uuid)
Definition: ovsdb-idl.c:2247
Definition: vswitch-idl.h:1917
const struct ovsrec_flow_sample_collector_set* ovsrec_flow_sample_collector_set_next ( const struct ovsrec_flow_sample_collector_set row)
5304 {
5306 }
static struct ovsrec_flow_sample_collector_set * ovsrec_flow_sample_collector_set_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:40
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:446
const struct ovsdb_idl_row * ovsdb_idl_next_row(const struct ovsdb_idl_row *row)
Definition: ovsdb-idl.c:1301
static void ovsrec_flow_sample_collector_set_parse_bridge ( struct ovsdb_idl_row row_,
const struct ovsdb_datum datum 
)
static
5187 {
5189 
5190  ovs_assert(inited);
5191  if (datum->n >= 1) {
5193  } else {
5194  row->bridge = NULL;
5195  }
5196 }
struct ovsdb_idl_table_class ovsrec_table_classes[OVSREC_N_TABLES]
Definition: vswitch-idl.c:21482
Definition: vswitch-idl.h:445
#define ovs_assert(CONDITION)
Definition: util.h:73
struct ovsdb_idl_row * ovsdb_idl_get_row_arc(struct ovsdb_idl_row *src, struct ovsdb_idl_table_class *dst_table, const struct uuid *dst_uuid)
Definition: ovsdb-idl.c:1216
union ovsdb_atom * keys
Definition: ovsdb-data.h:127
static struct ovsrec_flow_sample_collector_set * ovsrec_flow_sample_collector_set_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:40
static bool inited
Definition: vswitch-idl.c:18
struct ovsrec_bridge * bridge
Definition: vswitch-idl.h:449
unsigned int n
Definition: ovsdb-data.h:126
struct uuid uuid
Definition: ovsdb-data.h:34
Definition: vswitch-idl.h:1915
static struct ovsrec_bridge * ovsrec_bridge_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:28
static void ovsrec_flow_sample_collector_set_parse_external_ids ( struct ovsdb_idl_row row_,
const struct ovsdb_datum datum 
)
static
5200 {
5202  size_t i;
5203 
5204  ovs_assert(inited);
5205  smap_init(&row->external_ids);
5206  for (i = 0; i < datum->n; i++) {
5207  smap_add(&row->external_ids,
5208  datum->keys[i].string,
5209  datum->values[i].string);
5210  }
5211 }
Definition: vswitch-idl.h:445
#define ovs_assert(CONDITION)
Definition: util.h:73
void smap_init(struct smap *smap)
Definition: smap.c:33
char * string
Definition: ovsdb-data.h:33
struct smap_node * smap_add(struct smap *smap, const char *key, const char *value)
Definition: smap.c:50
union ovsdb_atom * keys
Definition: ovsdb-data.h:127
static struct ovsrec_flow_sample_collector_set * ovsrec_flow_sample_collector_set_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:40
union ovsdb_atom * values
Definition: ovsdb-data.h:128
static bool inited
Definition: vswitch-idl.c:18
unsigned int n
Definition: ovsdb-data.h:126
struct smap external_ids
Definition: vswitch-idl.h:452
static void ovsrec_flow_sample_collector_set_parse_id ( struct ovsdb_idl_row row_,
const struct ovsdb_datum datum 
)
static
5215 {
5217 
5218  ovs_assert(inited);
5219  if (datum->n >= 1) {
5220  row->id = datum->keys[0].integer;
5221  } else {
5222  row->id = 0;
5223  }
5224 }
int64_t integer
Definition: ovsdb-data.h:30
Definition: vswitch-idl.h:445
#define ovs_assert(CONDITION)
Definition: util.h:73
union ovsdb_atom * keys
Definition: ovsdb-data.h:127
static struct ovsrec_flow_sample_collector_set * ovsrec_flow_sample_collector_set_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:40
int64_t id
Definition: vswitch-idl.h:455
static bool inited
Definition: vswitch-idl.c:18
unsigned int n
Definition: ovsdb-data.h:126
static void ovsrec_flow_sample_collector_set_parse_ipfix ( struct ovsdb_idl_row row_,
const struct ovsdb_datum datum 
)
static
5228 {
5230 
5231  ovs_assert(inited);
5232  if (datum->n >= 1) {
5234  } else {
5235  row->ipfix = NULL;
5236  }
5237 }
Definition: vswitch-idl.h:1919
struct ovsdb_idl_table_class ovsrec_table_classes[OVSREC_N_TABLES]
Definition: vswitch-idl.c:21482
Definition: vswitch-idl.h:445
#define ovs_assert(CONDITION)
Definition: util.h:73
struct ovsrec_ipfix * ipfix
Definition: vswitch-idl.h:458
struct ovsdb_idl_row * ovsdb_idl_get_row_arc(struct ovsdb_idl_row *src, struct ovsdb_idl_table_class *dst_table, const struct uuid *dst_uuid)
Definition: ovsdb-idl.c:1216
union ovsdb_atom * keys
Definition: ovsdb-data.h:127
static struct ovsrec_flow_sample_collector_set * ovsrec_flow_sample_collector_set_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:40
static struct ovsrec_ipfix * ovsrec_ipfix_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:52
static bool inited
Definition: vswitch-idl.c:18
unsigned int n
Definition: ovsdb-data.h:126
struct uuid uuid
Definition: ovsdb-data.h:34
void ovsrec_flow_sample_collector_set_set_bridge ( const struct ovsrec_flow_sample_collector_set row,
const struct ovsrec_bridge bridge 
)
5576 {
5577  struct ovsdb_datum datum;
5578  union ovsdb_atom key;
5579 
5580  ovs_assert(inited);
5581  datum.n = 1;
5582  datum.keys = &key;
5583  key.uuid = bridge->header_.uuid;
5584  datum.values = NULL;
5586 }
Definition: ovsdb-data.h:125
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: ovsdb-data.h:29
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:74
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:446
static bool inited
Definition: vswitch-idl.c:18
Definition: vswitch-idl.h:462
struct ovsdb_idl_column ovsrec_flow_sample_collector_set_columns[OVSREC_FLOW_SAMPLE_COLLECTOR_SET_N_COLUMNS]
Definition: vswitch-idl.c:5668
static struct aes128 key
Definition: uuid.c:34
struct uuid uuid
Definition: ovsdb-idl-provider.h:28
void ovsdb_idl_txn_write_clone(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column, const struct ovsdb_datum *datum)
Definition: ovsdb-idl.c:2131
void ovsrec_flow_sample_collector_set_set_external_ids ( const struct ovsrec_flow_sample_collector_set row,
const struct smap external_ids 
)
5594 {
5595  struct ovsdb_datum datum;
5596 
5597  ovs_assert(inited);
5598  if (external_ids) {
5599  struct smap_node *node;
5600  size_t i;
5601 
5602  datum.n = smap_count(external_ids);
5603  datum.keys = xmalloc(datum.n * sizeof *datum.keys);
5604  datum.values = xmalloc(datum.n * sizeof *datum.values);
5605 
5606  i = 0;
5607  SMAP_FOR_EACH (node, external_ids) {
5608  datum.keys[i].string = xstrdup(node->key);
5609  datum.values[i].string = xstrdup(node->value);
5610  i++;
5611  }
5613  } else {
5614  ovsdb_datum_init_empty(&datum);
5615  }
5618  &datum);
5619 }
char * value
Definition: smap.h:31
Definition: ovsdb-data.h:125
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: ovsdb-types.h:33
size_t ovsdb_datum_sort_unique(struct ovsdb_datum *datum, enum ovsdb_atomic_type key_type, enum ovsdb_atomic_type value_type)
Definition: ovsdb-data.c:1089
#define SMAP_FOR_EACH(SMAP_NODE, SMAP)
Definition: smap.h:36
void * xmalloc(size_t size)
Definition: util.c:110
char * xstrdup(const char *s)
Definition: util.c:149
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:446
static bool inited
Definition: vswitch-idl.c:18
struct hmap_node node
Definition: smap.h:29
Definition: smap.h:28
size_t smap_count(const struct smap *smap)
Definition: smap.c:238
void ovsdb_datum_init_empty(struct ovsdb_datum *datum)
Definition: ovsdb-data.c:835
void ovsdb_idl_txn_write(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column, struct ovsdb_datum *datum)
Definition: ovsdb-idl.c:2123
struct ovsdb_idl_column ovsrec_flow_sample_collector_set_columns[OVSREC_FLOW_SAMPLE_COLLECTOR_SET_N_COLUMNS]
Definition: vswitch-idl.c:5668
char * key
Definition: smap.h:30
void ovsrec_flow_sample_collector_set_set_id ( const struct ovsrec_flow_sample_collector_set row,
int64_t  id 
)
5630 {
5631  struct ovsdb_datum datum;
5632  union ovsdb_atom key;
5633 
5634  ovs_assert(inited);
5635  datum.n = 1;
5636  datum.keys = &key;
5637  key.integer = id;
5638  datum.values = NULL;
5640 }
Definition: ovsdb-data.h:125
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: vswitch-idl.h:464
Definition: ovsdb-data.h:29
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:446
static bool inited
Definition: vswitch-idl.c:18
struct ovsdb_idl_column ovsrec_flow_sample_collector_set_columns[OVSREC_FLOW_SAMPLE_COLLECTOR_SET_N_COLUMNS]
Definition: vswitch-idl.c:5668
static struct aes128 key
Definition: uuid.c:34
void ovsdb_idl_txn_write_clone(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column, const struct ovsdb_datum *datum)
Definition: ovsdb-idl.c:2131
void ovsrec_flow_sample_collector_set_set_ipfix ( const struct ovsrec_flow_sample_collector_set row,
const struct ovsrec_ipfix ipfix 
)
5651 {
5652  struct ovsdb_datum datum;
5653  union ovsdb_atom key;
5654 
5655  ovs_assert(inited);
5656  if (ipfix) {
5657  datum.n = 1;
5658  datum.keys = &key;
5659  key.uuid = ipfix->header_.uuid;
5660  } else {
5661  datum.n = 0;
5662  datum.keys = NULL;
5663  }
5664  datum.values = NULL;
5666 }
Definition: ovsdb-data.h:125
#define ovs_assert(CONDITION)
Definition: util.h:73
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:593
Definition: vswitch-idl.h:465
Definition: ovsdb-data.h:29
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:446
static bool inited
Definition: vswitch-idl.c:18
struct ovsdb_idl_column ovsrec_flow_sample_collector_set_columns[OVSREC_FLOW_SAMPLE_COLLECTOR_SET_N_COLUMNS]
Definition: vswitch-idl.c:5668
static struct aes128 key
Definition: uuid.c:34
struct uuid uuid
Definition: ovsdb-idl-provider.h:28
void ovsdb_idl_txn_write_clone(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column, const struct ovsdb_datum *datum)
Definition: ovsdb-idl.c:2131
static void ovsrec_flow_sample_collector_set_unparse_bridge ( struct ovsdb_idl_row *row  OVS_UNUSED)
static
5241 {
5242  /* Nothing to do. */
5243 }
static void ovsrec_flow_sample_collector_set_unparse_external_ids ( struct ovsdb_idl_row row_)
static
5247 {
5249 
5250  ovs_assert(inited);
5251  smap_destroy(&row->external_ids);
5252 }
Definition: vswitch-idl.h:445
#define ovs_assert(CONDITION)
Definition: util.h:73
static struct ovsrec_flow_sample_collector_set * ovsrec_flow_sample_collector_set_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:40
static bool inited
Definition: vswitch-idl.c:18
void smap_destroy(struct smap *smap)
Definition: smap.c:39
struct smap external_ids
Definition: vswitch-idl.h:452
static void ovsrec_flow_sample_collector_set_unparse_id ( struct ovsdb_idl_row *row  OVS_UNUSED)
static
5256 {
5257  /* Nothing to do. */
5258 }
static void ovsrec_flow_sample_collector_set_unparse_ipfix ( struct ovsdb_idl_row *row  OVS_UNUSED)
static
5262 {
5263  /* Nothing to do. */
5264 }
void ovsrec_flow_sample_collector_set_verify_bridge ( const struct ovsrec_flow_sample_collector_set row)
5358 {
5359  ovs_assert(inited);
5361 }
#define ovs_assert(CONDITION)
Definition: util.h:73
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:446
static bool inited
Definition: vswitch-idl.c:18
Definition: vswitch-idl.h:462
void ovsdb_idl_txn_verify(const struct ovsdb_idl_row *, const struct ovsdb_idl_column *)
Definition: ovsdb-idl.c:2168
struct ovsdb_idl_column ovsrec_flow_sample_collector_set_columns[OVSREC_FLOW_SAMPLE_COLLECTOR_SET_N_COLUMNS]
Definition: vswitch-idl.c:5668
void ovsrec_flow_sample_collector_set_verify_external_ids ( const struct ovsrec_flow_sample_collector_set row)
5390 {
5391  ovs_assert(inited);
5393 }
#define ovs_assert(CONDITION)
Definition: util.h:73
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:446
static bool inited
Definition: vswitch-idl.c:18
void ovsdb_idl_txn_verify(const struct ovsdb_idl_row *, const struct ovsdb_idl_column *)
Definition: ovsdb-idl.c:2168
struct ovsdb_idl_column ovsrec_flow_sample_collector_set_columns[OVSREC_FLOW_SAMPLE_COLLECTOR_SET_N_COLUMNS]
Definition: vswitch-idl.c:5668
void ovsrec_flow_sample_collector_set_verify_id ( const struct ovsrec_flow_sample_collector_set row)
5422 {
5423  ovs_assert(inited);
5425 }
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: vswitch-idl.h:464
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:446
static bool inited
Definition: vswitch-idl.c:18
void ovsdb_idl_txn_verify(const struct ovsdb_idl_row *, const struct ovsdb_idl_column *)
Definition: ovsdb-idl.c:2168
struct ovsdb_idl_column ovsrec_flow_sample_collector_set_columns[OVSREC_FLOW_SAMPLE_COLLECTOR_SET_N_COLUMNS]
Definition: vswitch-idl.c:5668
void ovsrec_flow_sample_collector_set_verify_ipfix ( const struct ovsrec_flow_sample_collector_set row)
5454 {
5455  ovs_assert(inited);
5457 }
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: vswitch-idl.h:465
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:446
static bool inited
Definition: vswitch-idl.c:18
void ovsdb_idl_txn_verify(const struct ovsdb_idl_row *, const struct ovsdb_idl_column *)
Definition: ovsdb-idl.c:2168
struct ovsdb_idl_column ovsrec_flow_sample_collector_set_columns[OVSREC_FLOW_SAMPLE_COLLECTOR_SET_N_COLUMNS]
Definition: vswitch-idl.c:5668
static struct ovsrec_flow_table* ovsrec_flow_table_cast ( const struct ovsdb_idl_row row)
static
47 {
48  return row ? CONTAINER_OF(row, struct ovsrec_flow_table, header_) : NULL;
49 }
#define CONTAINER_OF(POINTER, STRUCT, MEMBER)
Definition: util.h:207
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:446
Definition: vswitch-idl.h:509
static void ovsrec_flow_table_columns_init ( void  )
static
6459 {
6460  struct ovsdb_idl_column *c;
6461 
6462  /* Initialize ovsrec_flow_table_col_external_ids. */
6464  c->name = "external_ids";
6466  c->type.key.u.string.minLen = 0;
6468  c->type.value.u.string.minLen = 0;
6469  c->type.n_min = 0;
6470  c->type.n_max = UINT_MAX;
6471  c->mutable = true;
6474 
6475  /* Initialize ovsrec_flow_table_col_flow_limit. */
6477  c->name = "flow_limit";
6479  c->type.key.u.integer.min = INT64_C(0);
6481  c->type.n_min = 0;
6482  c->type.n_max = 1;
6483  c->mutable = true;
6486 
6487  /* Initialize ovsrec_flow_table_col_groups. */
6489  c->name = "groups";
6491  c->type.key.u.string.minLen = 0;
6493  c->type.n_min = 0;
6494  c->type.n_max = UINT_MAX;
6495  c->mutable = true;
6498 
6499  /* Initialize ovsrec_flow_table_col_name. */
6501  c->name = "name";
6503  c->type.key.u.string.minLen = 0;
6505  c->type.n_min = 0;
6506  c->type.n_max = 1;
6507  c->mutable = true;
6510 
6511  /* Initialize ovsrec_flow_table_col_overflow_policy. */
6513  c->name = "overflow_policy";
6515  c->type.key.enum_ = xmalloc(sizeof *c->type.key.enum_);
6516  c->type.key.enum_->n = 2;
6517  c->type.key.enum_->keys = xmalloc(2 * sizeof *c->type.key.enum_->keys);
6518  c->type.key.enum_->keys[0].string = xstrdup("evict");
6519  c->type.key.enum_->keys[1].string = xstrdup("refuse");
6520  c->type.key.enum_->values = NULL;
6522  c->type.key.u.string.minLen = 0;
6524  c->type.n_min = 0;
6525  c->type.n_max = 1;
6526  c->mutable = true;
6529 
6530  /* Initialize ovsrec_flow_table_col_prefixes. */
6532  c->name = "prefixes";
6534  c->type.key.u.string.minLen = 0;
6536  c->type.n_min = 0;
6537  c->type.n_max = 3;
6538  c->mutable = true;
6541 }
void(* unparse)(struct ovsdb_idl_row *)
Definition: ovsdb-idl-provider.h:46
Definition: ovsdb-idl-provider.h:41
struct ovsdb_base_type::@145::ovsdb_string_constraints string
#define ovsrec_flow_table_col_prefixes
Definition: vswitch-idl.h:547
static void ovsrec_flow_table_parse_external_ids(struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
Definition: vswitch-idl.c:5731
static void ovsrec_flow_table_unparse_name(struct ovsdb_idl_row *row OVS_UNUSED)
Definition: vswitch-idl.c:5855
void ovsdb_base_type_init(struct ovsdb_base_type *base, enum ovsdb_atomic_type type)
Definition: ovsdb-types.c:117
union ovsdb_base_type::@145 u
static void ovsrec_flow_table_parse_name(struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
Definition: vswitch-idl.c:5783
unsigned int n_min
Definition: ovsdb-types.h:136
struct ovsdb_base_type key
Definition: ovsdb-types.h:134
void(* parse)(struct ovsdb_idl_row *, const struct ovsdb_datum *)
Definition: ovsdb-idl-provider.h:45
unsigned int n_max
Definition: ovsdb-types.h:137
char * string
Definition: ovsdb-data.h:33
#define ovsrec_flow_table_col_groups
Definition: vswitch-idl.h:548
Definition: ovsdb-types.h:33
struct ovsdb_base_type value
Definition: ovsdb-types.h:135
char * name
Definition: ovsdb-idl-provider.h:42
static void ovsrec_flow_table_unparse_prefixes(struct ovsdb_idl_row *row_)
Definition: vswitch-idl.c:5867
void ovsdb_datum_sort_assert(struct ovsdb_datum *datum, enum ovsdb_atomic_type key_type)
Definition: ovsdb-data.c:1074
union ovsdb_atom * keys
Definition: ovsdb-data.h:127
Definition: ovsdb-types.h:30
void * xmalloc(size_t size)
Definition: util.c:110
union ovsdb_atom * values
Definition: ovsdb-data.h:128
char * xstrdup(const char *s)
Definition: util.c:149
static void ovsrec_flow_table_parse_overflow_policy(struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
Definition: vswitch-idl.c:5796
static void ovsrec_flow_table_unparse_external_ids(struct ovsdb_idl_row *row_)
Definition: vswitch-idl.c:5828
struct ovsdb_type type
Definition: ovsdb-idl-provider.h:43
unsigned int n
Definition: ovsdb-data.h:126
static void ovsrec_flow_table_unparse_flow_limit(struct ovsdb_idl_row *row_)
Definition: vswitch-idl.c:5837
bool mutable
Definition: ovsdb-idl-provider.h:44
static void ovsrec_flow_table_parse_groups(struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
Definition: vswitch-idl.c:5765
#define ovsrec_flow_table_col_external_ids
Definition: vswitch-idl.h:549
Definition: ovsdb-types.h:29
#define ovsrec_flow_table_col_overflow_policy
Definition: vswitch-idl.h:544
struct ovsdb_base_type::@145::ovsdb_integer_constraints integer
#define ovsrec_flow_table_col_name
Definition: vswitch-idl.h:545
#define ovsrec_flow_table_col_flow_limit
Definition: vswitch-idl.h:546
static void ovsrec_flow_table_unparse_overflow_policy(struct ovsdb_idl_row *row OVS_UNUSED)
Definition: vswitch-idl.c:5861
struct ovsdb_datum * enum_
Definition: ovsdb-types.h:57
static void ovsrec_flow_table_parse_flow_limit(struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
Definition: vswitch-idl.c:5746
static void ovsrec_flow_table_unparse_groups(struct ovsdb_idl_row *row_)
Definition: vswitch-idl.c:5846
static void ovsrec_flow_table_parse_prefixes(struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
Definition: vswitch-idl.c:5809
void ovsrec_flow_table_delete ( const struct ovsrec_flow_table row)
5923 {
5925 }
void ovsdb_idl_txn_delete(const struct ovsdb_idl_row *row_)
Definition: ovsdb-idl.c:2208
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:510
const struct ovsrec_flow_table* ovsrec_flow_table_first ( const struct ovsdb_idl idl)
5905 {
5907 }
struct ovsdb_idl_table_class ovsrec_table_classes[OVSREC_N_TABLES]
Definition: vswitch-idl.c:21482
Definition: vswitch-idl.h:1918
static struct ovsrec_flow_table * ovsrec_flow_table_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:46
const struct ovsdb_idl_row * ovsdb_idl_first_row(const struct ovsdb_idl *idl, const struct ovsdb_idl_table_class *table_class)
Definition: ovsdb-idl.c:1290
const struct ovsdb_datum* ovsrec_flow_table_get_external_ids ( const struct ovsrec_flow_table row,
enum ovsdb_atomic_type key_type  OVS_UNUSED,
enum ovsdb_atomic_type value_type  OVS_UNUSED 
)
6156 {
6157  ovs_assert(key_type == OVSDB_TYPE_STRING);
6158  ovs_assert(value_type == OVSDB_TYPE_STRING);
6160 }
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: ovsdb-types.h:33
#define ovsrec_flow_table_col_external_ids
Definition: vswitch-idl.h:549
const struct ovsdb_datum * ovsdb_idl_read(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column)
Definition: ovsdb-idl.c:1320
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:510
const struct ovsdb_datum* ovsrec_flow_table_get_flow_limit ( const struct ovsrec_flow_table row,
enum ovsdb_atomic_type key_type  OVS_UNUSED 
)
6184 {
6185  ovs_assert(key_type == OVSDB_TYPE_INTEGER);
6187 }
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: ovsdb-types.h:30
const struct ovsdb_datum * ovsdb_idl_read(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column)
Definition: ovsdb-idl.c:1320
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:510
#define ovsrec_flow_table_col_flow_limit
Definition: vswitch-idl.h:546
const struct ovsrec_flow_table* ovsrec_flow_table_get_for_uuid ( const struct ovsdb_idl idl,
const struct uuid uuid 
)
5893 {
5895 }
const struct ovsdb_idl_row * ovsdb_idl_get_row_for_uuid(const struct ovsdb_idl *idl, const struct ovsdb_idl_table_class *tc, const struct uuid *uuid)
Definition: ovsdb-idl.c:1262
struct ovsdb_idl_table_class ovsrec_table_classes[OVSREC_N_TABLES]
Definition: vswitch-idl.c:21482
Definition: vswitch-idl.h:1918
static struct ovsrec_flow_table * ovsrec_flow_table_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:46
const struct ovsdb_datum* ovsrec_flow_table_get_groups ( const struct ovsrec_flow_table row,
enum ovsdb_atomic_type key_type  OVS_UNUSED 
)
6211 {
6212  ovs_assert(key_type == OVSDB_TYPE_STRING);
6214 }
#define ovs_assert(CONDITION)
Definition: util.h:73
#define ovsrec_flow_table_col_groups
Definition: vswitch-idl.h:548
Definition: ovsdb-types.h:33
const struct ovsdb_datum * ovsdb_idl_read(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column)
Definition: ovsdb-idl.c:1320
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:510
const struct ovsdb_datum* ovsrec_flow_table_get_name ( const struct ovsrec_flow_table row,
enum ovsdb_atomic_type key_type  OVS_UNUSED 
)
6238 {
6239  ovs_assert(key_type == OVSDB_TYPE_STRING);
6241 }
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: ovsdb-types.h:33
const struct ovsdb_datum * ovsdb_idl_read(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column)
Definition: ovsdb-idl.c:1320
#define ovsrec_flow_table_col_name
Definition: vswitch-idl.h:545
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:510
const struct ovsdb_datum* ovsrec_flow_table_get_overflow_policy ( const struct ovsrec_flow_table row,
enum ovsdb_atomic_type key_type  OVS_UNUSED 
)
6265 {
6266  ovs_assert(key_type == OVSDB_TYPE_STRING);
6268 }
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: ovsdb-types.h:33
#define ovsrec_flow_table_col_overflow_policy
Definition: vswitch-idl.h:544
const struct ovsdb_datum * ovsdb_idl_read(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column)
Definition: ovsdb-idl.c:1320
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:510
const struct ovsdb_datum* ovsrec_flow_table_get_prefixes ( const struct ovsrec_flow_table row,
enum ovsdb_atomic_type key_type  OVS_UNUSED 
)
6292 {
6293  ovs_assert(key_type == OVSDB_TYPE_STRING);
6295 }
#define ovsrec_flow_table_col_prefixes
Definition: vswitch-idl.h:547
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: ovsdb-types.h:33
const struct ovsdb_datum * ovsdb_idl_read(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column)
Definition: ovsdb-idl.c:1320
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:510
void ovsrec_flow_table_init ( struct ovsrec_flow_table row)
5884 {
5885  memset(row, 0, sizeof *row);
5886  smap_init(&row->external_ids);
5887 }
void smap_init(struct smap *smap)
Definition: smap.c:33
struct smap external_ids
Definition: vswitch-idl.h:513
static void ovsrec_flow_table_init__ ( struct ovsdb_idl_row row)
static
5877 {
5879 }
void ovsrec_flow_table_init(struct ovsrec_flow_table *row)
Definition: vswitch-idl.c:5883
static struct ovsrec_flow_table * ovsrec_flow_table_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:46
struct ovsrec_flow_table* ovsrec_flow_table_insert ( struct ovsdb_idl_txn txn)
5936 {
5938 }
struct ovsdb_idl_table_class ovsrec_table_classes[OVSREC_N_TABLES]
Definition: vswitch-idl.c:21482
Definition: vswitch-idl.h:1918
const struct ovsdb_idl_row * ovsdb_idl_txn_insert(struct ovsdb_idl_txn *txn, const struct ovsdb_idl_table_class *class, const struct uuid *uuid)
Definition: ovsdb-idl.c:2247
static struct ovsrec_flow_table * ovsrec_flow_table_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:46
const struct ovsrec_flow_table* ovsrec_flow_table_next ( const struct ovsrec_flow_table row)
5913 {
5915 }
const struct ovsdb_idl_row * ovsdb_idl_next_row(const struct ovsdb_idl_row *row)
Definition: ovsdb-idl.c:1301
static struct ovsrec_flow_table * ovsrec_flow_table_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:46
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:510
static void ovsrec_flow_table_parse_external_ids ( struct ovsdb_idl_row row_,
const struct ovsdb_datum datum 
)
static
5732 {
5733  struct ovsrec_flow_table *row = ovsrec_flow_table_cast(row_);
5734  size_t i;
5735 
5736  ovs_assert(inited);
5737  smap_init(&row->external_ids);
5738  for (i = 0; i < datum->n; i++) {
5739  smap_add(&row->external_ids,
5740  datum->keys[i].string,
5741  datum->values[i].string);
5742  }
5743 }
#define ovs_assert(CONDITION)
Definition: util.h:73
void smap_init(struct smap *smap)
Definition: smap.c:33
char * string
Definition: ovsdb-data.h:33
struct smap_node * smap_add(struct smap *smap, const char *key, const char *value)
Definition: smap.c:50
union ovsdb_atom * keys
Definition: ovsdb-data.h:127
union ovsdb_atom * values
Definition: ovsdb-data.h:128
static bool inited
Definition: vswitch-idl.c:18
unsigned int n
Definition: ovsdb-data.h:126
struct smap external_ids
Definition: vswitch-idl.h:513
static struct ovsrec_flow_table * ovsrec_flow_table_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:46
Definition: vswitch-idl.h:509
static void ovsrec_flow_table_parse_flow_limit ( struct ovsdb_idl_row row_,
const struct ovsdb_datum datum 
)
static
5747 {
5748  struct ovsrec_flow_table *row = ovsrec_flow_table_cast(row_);
5749  size_t n = MIN(1, datum->n);
5750  size_t i;
5751 
5752  ovs_assert(inited);
5753  row->flow_limit = NULL;
5754  row->n_flow_limit = 0;
5755  for (i = 0; i < n; i++) {
5756  if (!row->n_flow_limit) {
5757  row->flow_limit = xmalloc(n * sizeof *row->flow_limit);
5758  }
5759  row->flow_limit[row->n_flow_limit] = datum->keys[i].integer;
5760  row->n_flow_limit++;
5761  }
5762 }
int64_t integer
Definition: ovsdb-data.h:30
#define ovs_assert(CONDITION)
Definition: util.h:73
union ovsdb_atom * keys
Definition: ovsdb-data.h:127
void * xmalloc(size_t size)
Definition: util.c:110
static bool inited
Definition: vswitch-idl.c:18
unsigned int n
Definition: ovsdb-data.h:126
size_t n_flow_limit
Definition: vswitch-idl.h:517
#define MIN(_a, _b)
Definition: Util.h:68
static struct ovsrec_flow_table * ovsrec_flow_table_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:46
int64_t * flow_limit
Definition: vswitch-idl.h:516
Definition: vswitch-idl.h:509
static void ovsrec_flow_table_parse_groups ( struct ovsdb_idl_row row_,
const struct ovsdb_datum datum 
)
static
5766 {
5767  struct ovsrec_flow_table *row = ovsrec_flow_table_cast(row_);
5768  size_t i;
5769 
5770  ovs_assert(inited);
5771  row->groups = NULL;
5772  row->n_groups = 0;
5773  for (i = 0; i < datum->n; i++) {
5774  if (!row->n_groups) {
5775  row->groups = xmalloc(datum->n * sizeof *row->groups);
5776  }
5777  row->groups[row->n_groups] = datum->keys[i].string;
5778  row->n_groups++;
5779  }
5780 }
#define ovs_assert(CONDITION)
Definition: util.h:73
char ** groups
Definition: vswitch-idl.h:520
char * string
Definition: ovsdb-data.h:33
union ovsdb_atom * keys
Definition: ovsdb-data.h:127
void * xmalloc(size_t size)
Definition: util.c:110
static bool inited
Definition: vswitch-idl.c:18
size_t n_groups
Definition: vswitch-idl.h:521
unsigned int n
Definition: ovsdb-data.h:126
static struct ovsrec_flow_table * ovsrec_flow_table_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:46
Definition: vswitch-idl.h:509
static void ovsrec_flow_table_parse_name ( struct ovsdb_idl_row row_,
const struct ovsdb_datum datum 
)
static
5784 {
5785  struct ovsrec_flow_table *row = ovsrec_flow_table_cast(row_);
5786 
5787  ovs_assert(inited);
5788  if (datum->n >= 1) {
5789  row->name = datum->keys[0].string;
5790  } else {
5791  row->name = NULL;
5792  }
5793 }
#define ovs_assert(CONDITION)
Definition: util.h:73
char * string
Definition: ovsdb-data.h:33
union ovsdb_atom * keys
Definition: ovsdb-data.h:127
static bool inited
Definition: vswitch-idl.c:18
unsigned int n
Definition: ovsdb-data.h:126
static struct ovsrec_flow_table * ovsrec_flow_table_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:46
Definition: vswitch-idl.h:509
char * name
Definition: vswitch-idl.h:524
static void ovsrec_flow_table_parse_overflow_policy ( struct ovsdb_idl_row row_,
const struct ovsdb_datum datum 
)
static
5797 {
5798  struct ovsrec_flow_table *row = ovsrec_flow_table_cast(row_);
5799 
5800  ovs_assert(inited);
5801  if (datum->n >= 1) {
5802  row->overflow_policy = datum->keys[0].string;
5803  } else {
5804  row->overflow_policy = NULL;
5805  }
5806 }
#define ovs_assert(CONDITION)
Definition: util.h:73
char * string
Definition: ovsdb-data.h:33
union ovsdb_atom * keys
Definition: ovsdb-data.h:127
char * overflow_policy
Definition: vswitch-idl.h:527
static bool inited
Definition: vswitch-idl.c:18
unsigned int n
Definition: ovsdb-data.h:126
static struct ovsrec_flow_table * ovsrec_flow_table_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:46
Definition: vswitch-idl.h:509
static void ovsrec_flow_table_parse_prefixes ( struct ovsdb_idl_row row_,
const struct ovsdb_datum datum 
)
static
5810 {
5811  struct ovsrec_flow_table *row = ovsrec_flow_table_cast(row_);
5812  size_t n = MIN(3, datum->n);
5813  size_t i;
5814 
5815  ovs_assert(inited);
5816  row->prefixes = NULL;
5817  row->n_prefixes = 0;
5818  for (i = 0; i < n; i++) {
5819  if (!row->n_prefixes) {
5820  row->prefixes = xmalloc(n * sizeof *row->prefixes);
5821  }
5822  row->prefixes[row->n_prefixes] = datum->keys[i].string;
5823  row->n_prefixes++;
5824  }
5825 }
#define ovs_assert(CONDITION)
Definition: util.h:73
char * string
Definition: ovsdb-data.h:33
union ovsdb_atom * keys
Definition: ovsdb-data.h:127
void * xmalloc(size_t size)
Definition: util.c:110
size_t n_prefixes
Definition: vswitch-idl.h:531
static bool inited
Definition: vswitch-idl.c:18
unsigned int n
Definition: ovsdb-data.h:126
char ** prefixes
Definition: vswitch-idl.h:530
#define MIN(_a, _b)
Definition: Util.h:68
static struct ovsrec_flow_table * ovsrec_flow_table_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:46
Definition: vswitch-idl.h:509
void ovsrec_flow_table_set_external_ids ( const struct ovsrec_flow_table row,
const struct smap external_ids 
)
6303 {
6304  struct ovsdb_datum datum;
6305 
6306  ovs_assert(inited);
6307  if (external_ids) {
6308  struct smap_node *node;
6309  size_t i;
6310 
6311  datum.n = smap_count(external_ids);
6312  datum.keys = xmalloc(datum.n * sizeof *datum.keys);
6313  datum.values = xmalloc(datum.n * sizeof *datum.values);
6314 
6315  i = 0;
6316  SMAP_FOR_EACH (node, external_ids) {
6317  datum.keys[i].string = xstrdup(node->key);
6318  datum.values[i].string = xstrdup(node->value);
6319  i++;
6320  }
6322  } else {
6323  ovsdb_datum_init_empty(&datum);
6324  }
6327  &datum);
6328 }
char * value
Definition: smap.h:31
Definition: ovsdb-data.h:125
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: ovsdb-types.h:33
size_t ovsdb_datum_sort_unique(struct ovsdb_datum *datum, enum ovsdb_atomic_type key_type, enum ovsdb_atomic_type value_type)
Definition: ovsdb-data.c:1089
#define SMAP_FOR_EACH(SMAP_NODE, SMAP)
Definition: smap.h:36
void * xmalloc(size_t size)
Definition: util.c:110
char * xstrdup(const char *s)
Definition: util.c:149
static bool inited
Definition: vswitch-idl.c:18
struct hmap_node node
Definition: smap.h:29
struct ovsdb_idl_column ovsrec_flow_table_columns[OVSREC_FLOW_TABLE_N_COLUMNS]
Definition: vswitch-idl.c:6455
Definition: smap.h:28
size_t smap_count(const struct smap *smap)
Definition: smap.c:238
void ovsdb_datum_init_empty(struct ovsdb_datum *datum)
Definition: ovsdb-data.c:835
Definition: vswitch-idl.h:535
void ovsdb_idl_txn_write(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column, struct ovsdb_datum *datum)
Definition: ovsdb-idl.c:2123
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:510
char * key
Definition: smap.h:30
void ovsrec_flow_table_set_flow_limit ( const struct ovsrec_flow_table row,
const int64_t flow_limit,
size_t  n_flow_limit 
)
6342 {
6343  struct ovsdb_datum datum;
6344  union ovsdb_atom key;
6345 
6346  ovs_assert(inited);
6347  if (n_flow_limit) {
6348  datum.n = 1;
6349  datum.keys = &key;
6350  key.integer = *flow_limit;
6351  } else {
6352  datum.n = 0;
6353  datum.keys = NULL;
6354  }
6355  datum.values = NULL;
6357 }
Definition: ovsdb-data.h:125
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: ovsdb-data.h:29
static bool inited
Definition: vswitch-idl.c:18
struct ovsdb_idl_column ovsrec_flow_table_columns[OVSREC_FLOW_TABLE_N_COLUMNS]
Definition: vswitch-idl.c:6455
Definition: vswitch-idl.h:536
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:510
static struct aes128 key
Definition: uuid.c:34
void ovsdb_idl_txn_write_clone(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column, const struct ovsdb_datum *datum)
Definition: ovsdb-idl.c:2131
void ovsrec_flow_table_set_groups ( const struct ovsrec_flow_table row,
const char **  groups,
size_t  n_groups 
)
6365 {
6366  struct ovsdb_datum datum;
6367  size_t i;
6368 
6369  ovs_assert(inited);
6370  datum.n = n_groups;
6371  datum.keys = n_groups ? xmalloc(n_groups * sizeof *datum.keys) : NULL;
6372  datum.values = NULL;
6373  for (i = 0; i < n_groups; i++) {
6374  datum.keys[i].string = xstrdup(groups[i]);
6375  }
6378 }
Definition: ovsdb-data.h:125
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: ovsdb-types.h:33
size_t ovsdb_datum_sort_unique(struct ovsdb_datum *datum, enum ovsdb_atomic_type key_type, enum ovsdb_atomic_type value_type)
Definition: ovsdb-data.c:1089
void * xmalloc(size_t size)
Definition: util.c:110
char * xstrdup(const char *s)
Definition: util.c:149
Definition: vswitch-idl.h:537
static bool inited
Definition: vswitch-idl.c:18
struct ovsdb_idl_column ovsrec_flow_table_columns[OVSREC_FLOW_TABLE_N_COLUMNS]
Definition: vswitch-idl.c:6455
Definition: ovsdb-types.h:29
void ovsdb_idl_txn_write(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column, struct ovsdb_datum *datum)
Definition: ovsdb-idl.c:2123
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:510
void ovsrec_flow_table_set_name ( const struct ovsrec_flow_table row,
const char *  name 
)
6389 {
6390  struct ovsdb_datum datum;
6391  union ovsdb_atom key;
6392 
6393  ovs_assert(inited);
6394  if (name) {
6395  datum.n = 1;
6396  datum.keys = &key;
6397  key.string = CONST_CAST(char *, name);
6398  } else {
6399  datum.n = 0;
6400  datum.keys = NULL;
6401  }
6402  datum.values = NULL;
6404 }
Definition: ovsdb-data.h:125
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: ovsdb-data.h:29
Definition: vswitch-idl.h:538
static bool inited
Definition: vswitch-idl.c:18
struct ovsdb_idl_column ovsrec_flow_table_columns[OVSREC_FLOW_TABLE_N_COLUMNS]
Definition: vswitch-idl.c:6455
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:510
string name
Definition: setup.py:30
#define CONST_CAST(TYPE, POINTER)
Definition: util.h:88
static struct aes128 key
Definition: uuid.c:34
void ovsdb_idl_txn_write_clone(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column, const struct ovsdb_datum *datum)
Definition: ovsdb-idl.c:2131
void ovsrec_flow_table_set_overflow_policy ( const struct ovsrec_flow_table row,
const char *  overflow_policy 
)
6417 {
6418  struct ovsdb_datum datum;
6419  union ovsdb_atom key;
6420 
6421  ovs_assert(inited);
6422  if (overflow_policy) {
6423  datum.n = 1;
6424  datum.keys = &key;
6425  key.string = CONST_CAST(char *, overflow_policy);
6426  } else {
6427  datum.n = 0;
6428  datum.keys = NULL;
6429  }
6430  datum.values = NULL;
6432 }
Definition: ovsdb-data.h:125
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: ovsdb-data.h:29
static bool inited
Definition: vswitch-idl.c:18
struct ovsdb_idl_column ovsrec_flow_table_columns[OVSREC_FLOW_TABLE_N_COLUMNS]
Definition: vswitch-idl.c:6455
Definition: vswitch-idl.h:539
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:510
#define CONST_CAST(TYPE, POINTER)
Definition: util.h:88
static struct aes128 key
Definition: uuid.c:34
void ovsdb_idl_txn_write_clone(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column, const struct ovsdb_datum *datum)
Definition: ovsdb-idl.c:2131
void ovsrec_flow_table_set_prefixes ( const struct ovsrec_flow_table row,
const char **  prefixes,
size_t  n_prefixes 
)
6440 {
6441  struct ovsdb_datum datum;
6442  size_t i;
6443 
6444  ovs_assert(inited);
6445  datum.n = n_prefixes;
6446  datum.keys = n_prefixes ? xmalloc(n_prefixes * sizeof *datum.keys) : NULL;
6447  datum.values = NULL;
6448  for (i = 0; i < n_prefixes; i++) {
6449  datum.keys[i].string = xstrdup(prefixes[i]);
6450  }
6453 }
Definition: ovsdb-data.h:125
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: ovsdb-types.h:33
size_t ovsdb_datum_sort_unique(struct ovsdb_datum *datum, enum ovsdb_atomic_type key_type, enum ovsdb_atomic_type value_type)
Definition: ovsdb-data.c:1089
void * xmalloc(size_t size)
Definition: util.c:110
char * xstrdup(const char *s)
Definition: util.c:149
static bool inited
Definition: vswitch-idl.c:18
Definition: vswitch-idl.h:540
struct ovsdb_idl_column ovsrec_flow_table_columns[OVSREC_FLOW_TABLE_N_COLUMNS]
Definition: vswitch-idl.c:6455
Definition: ovsdb-types.h:29
void ovsdb_idl_txn_write(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column, struct ovsdb_datum *datum)
Definition: ovsdb-idl.c:2123
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:510
static void ovsrec_flow_table_unparse_external_ids ( struct ovsdb_idl_row row_)
static
5829 {
5830  struct ovsrec_flow_table *row = ovsrec_flow_table_cast(row_);
5831 
5832  ovs_assert(inited);
5833  smap_destroy(&row->external_ids);
5834 }
#define ovs_assert(CONDITION)
Definition: util.h:73
static bool inited
Definition: vswitch-idl.c:18
void smap_destroy(struct smap *smap)
Definition: smap.c:39
struct smap external_ids
Definition: vswitch-idl.h:513
static struct ovsrec_flow_table * ovsrec_flow_table_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:46
Definition: vswitch-idl.h:509
static void ovsrec_flow_table_unparse_flow_limit ( struct ovsdb_idl_row row_)
static
5838 {
5839  struct ovsrec_flow_table *row = ovsrec_flow_table_cast(row_);
5840 
5841  ovs_assert(inited);
5842  free(row->flow_limit);
5843 }
#define ovs_assert(CONDITION)
Definition: util.h:73
static bool inited
Definition: vswitch-idl.c:18
static struct ovsrec_flow_table * ovsrec_flow_table_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:46
int64_t * flow_limit
Definition: vswitch-idl.h:516
Definition: vswitch-idl.h:509
static void ovsrec_flow_table_unparse_groups ( struct ovsdb_idl_row row_)
static
5847 {
5848  struct ovsrec_flow_table *row = ovsrec_flow_table_cast(row_);
5849 
5850  ovs_assert(inited);
5851  free(row->groups);
5852 }
#define ovs_assert(CONDITION)
Definition: util.h:73
char ** groups
Definition: vswitch-idl.h:520
static bool inited
Definition: vswitch-idl.c:18
static struct ovsrec_flow_table * ovsrec_flow_table_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:46
Definition: vswitch-idl.h:509
static void ovsrec_flow_table_unparse_name ( struct ovsdb_idl_row *row  OVS_UNUSED)
static
5856 {
5857  /* Nothing to do. */
5858 }
static void ovsrec_flow_table_unparse_overflow_policy ( struct ovsdb_idl_row *row  OVS_UNUSED)
static
5862 {
5863  /* Nothing to do. */
5864 }
static void ovsrec_flow_table_unparse_prefixes ( struct ovsdb_idl_row row_)
static
5868 {
5869  struct ovsrec_flow_table *row = ovsrec_flow_table_cast(row_);
5870 
5871  ovs_assert(inited);
5872  free(row->prefixes);
5873 }
#define ovs_assert(CONDITION)
Definition: util.h:73
static bool inited
Definition: vswitch-idl.c:18
char ** prefixes
Definition: vswitch-idl.h:530
static struct ovsrec_flow_table * ovsrec_flow_table_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:46
Definition: vswitch-idl.h:509
void ovsrec_flow_table_verify_external_ids ( const struct ovsrec_flow_table row)
5967 {
5968  ovs_assert(inited);
5970 }
#define ovs_assert(CONDITION)
Definition: util.h:73
static bool inited
Definition: vswitch-idl.c:18
struct ovsdb_idl_column ovsrec_flow_table_columns[OVSREC_FLOW_TABLE_N_COLUMNS]
Definition: vswitch-idl.c:6455
void ovsdb_idl_txn_verify(const struct ovsdb_idl_row *, const struct ovsdb_idl_column *)
Definition: ovsdb-idl.c:2168
Definition: vswitch-idl.h:535
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:510
void ovsrec_flow_table_verify_flow_limit ( const struct ovsrec_flow_table row)
5999 {
6000  ovs_assert(inited);
6002 }
#define ovs_assert(CONDITION)
Definition: util.h:73
static bool inited
Definition: vswitch-idl.c:18
struct ovsdb_idl_column ovsrec_flow_table_columns[OVSREC_FLOW_TABLE_N_COLUMNS]
Definition: vswitch-idl.c:6455
Definition: vswitch-idl.h:536
void ovsdb_idl_txn_verify(const struct ovsdb_idl_row *, const struct ovsdb_idl_column *)
Definition: ovsdb-idl.c:2168
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:510
void ovsrec_flow_table_verify_groups ( const struct ovsrec_flow_table row)
6031 {
6032  ovs_assert(inited);
6034 }
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: vswitch-idl.h:537
static bool inited
Definition: vswitch-idl.c:18
struct ovsdb_idl_column ovsrec_flow_table_columns[OVSREC_FLOW_TABLE_N_COLUMNS]
Definition: vswitch-idl.c:6455
void ovsdb_idl_txn_verify(const struct ovsdb_idl_row *, const struct ovsdb_idl_column *)
Definition: ovsdb-idl.c:2168
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:510
void ovsrec_flow_table_verify_name ( const struct ovsrec_flow_table row)
6063 {
6064  ovs_assert(inited);
6066 }
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: vswitch-idl.h:538
static bool inited
Definition: vswitch-idl.c:18
struct ovsdb_idl_column ovsrec_flow_table_columns[OVSREC_FLOW_TABLE_N_COLUMNS]
Definition: vswitch-idl.c:6455
void ovsdb_idl_txn_verify(const struct ovsdb_idl_row *, const struct ovsdb_idl_column *)
Definition: ovsdb-idl.c:2168
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:510
void ovsrec_flow_table_verify_overflow_policy ( const struct ovsrec_flow_table row)
6095 {
6096  ovs_assert(inited);
6098 }
#define ovs_assert(CONDITION)
Definition: util.h:73
static bool inited
Definition: vswitch-idl.c:18
struct ovsdb_idl_column ovsrec_flow_table_columns[OVSREC_FLOW_TABLE_N_COLUMNS]
Definition: vswitch-idl.c:6455
Definition: vswitch-idl.h:539
void ovsdb_idl_txn_verify(const struct ovsdb_idl_row *, const struct ovsdb_idl_column *)
Definition: ovsdb-idl.c:2168
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:510
void ovsrec_flow_table_verify_prefixes ( const struct ovsrec_flow_table row)
6127 {
6128  ovs_assert(inited);
6130 }
#define ovs_assert(CONDITION)
Definition: util.h:73
static bool inited
Definition: vswitch-idl.c:18
Definition: vswitch-idl.h:540
struct ovsdb_idl_column ovsrec_flow_table_columns[OVSREC_FLOW_TABLE_N_COLUMNS]
Definition: vswitch-idl.c:6455
void ovsdb_idl_txn_verify(const struct ovsdb_idl_row *, const struct ovsdb_idl_column *)
Definition: ovsdb-idl.c:2168
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:510
const char* ovsrec_get_db_version ( void  )
21567 {
21568  return "7.12.1";
21569 }
void ovsrec_init ( void  )
21539 {
21540  if (inited) {
21541  return;
21542  }
21544  inited = true;
21545 
21562 }
static void ovsrec_controller_columns_init(void)
Definition: vswitch-idl.c:4983
static void ovsrec_open_vswitch_columns_init(void)
Definition: vswitch-idl.c:16291
#define assert_single_threaded()
Definition: ovs-thread.h:513
static void ovsrec_bridge_columns_init(void)
Definition: vswitch-idl.c:2965
static void ovsrec_mirror_columns_init(void)
Definition: vswitch-idl.c:13795
static void ovsrec_interface_columns_init(void)
Definition: vswitch-idl.c:11263
static void ovsrec_autoattach_columns_init(void)
Definition: vswitch-idl.c:496
static void ovsrec_port_columns_init(void)
Definition: vswitch-idl.c:18698
static void ovsrec_manager_columns_init(void)
Definition: vswitch-idl.c:12639
static bool inited
Definition: vswitch-idl.c:18
static void ovsrec_ipfix_columns_init(void)
Definition: vswitch-idl.c:7536
static void ovsrec_queue_columns_init(void)
Definition: vswitch-idl.c:19984
static void ovsrec_flow_sample_collector_set_columns_init(void)
Definition: vswitch-idl.c:5671
static void ovsrec_sflow_columns_init(void)
Definition: vswitch-idl.c:21407
static void ovsrec_qos_columns_init(void)
Definition: vswitch-idl.c:19500
static void ovsrec_ssl_columns_init(void)
Definition: vswitch-idl.c:20602
static void ovsrec_netflow_columns_init(void)
Definition: vswitch-idl.c:14634
static void ovsrec_flow_table_columns_init(void)
Definition: vswitch-idl.c:6458
static struct ovsrec_interface* ovsrec_interface_cast ( const struct ovsdb_idl_row row)
static
59 {
60  return row ? CONTAINER_OF(row, struct ovsrec_interface, header_) : NULL;
61 }
#define CONTAINER_OF(POINTER, STRUCT, MEMBER)
Definition: util.h:207
Definition: vswitch-idl.h:694
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:510
static void ovsrec_interface_columns_init ( void  )
static
11264 {
11265  struct ovsdb_idl_column *c;
11266 
11267  /* Initialize ovsrec_interface_col_admin_state. */
11269  c->name = "admin_state";
11271  c->type.key.enum_ = xmalloc(sizeof *c->type.key.enum_);
11272  c->type.key.enum_->n = 2;
11273  c->type.key.enum_->keys = xmalloc(2 * sizeof *c->type.key.enum_->keys);
11274  c->type.key.enum_->keys[0].string = xstrdup("down");
11275  c->type.key.enum_->keys[1].string = xstrdup("up");
11276  c->type.key.enum_->values = NULL;
11278  c->type.key.u.string.minLen = 0;
11280  c->type.n_min = 0;
11281  c->type.n_max = 1;
11282  c->mutable = true;
11285 
11286  /* Initialize ovsrec_interface_col_bfd. */
11288  c->name = "bfd";
11290  c->type.key.u.string.minLen = 0;
11292  c->type.value.u.string.minLen = 0;
11293  c->type.n_min = 0;
11294  c->type.n_max = UINT_MAX;
11295  c->mutable = true;
11298 
11299  /* Initialize ovsrec_interface_col_bfd_status. */
11301  c->name = "bfd_status";
11303  c->type.key.u.string.minLen = 0;
11305  c->type.value.u.string.minLen = 0;
11306  c->type.n_min = 0;
11307  c->type.n_max = UINT_MAX;
11308  c->mutable = true;
11311 
11312  /* Initialize ovsrec_interface_col_cfm_fault. */
11314  c->name = "cfm_fault";
11317  c->type.n_min = 0;
11318  c->type.n_max = 1;
11319  c->mutable = true;
11322 
11323  /* Initialize ovsrec_interface_col_cfm_fault_status. */
11325  c->name = "cfm_fault_status";
11327  c->type.key.u.string.minLen = 0;
11329  c->type.n_min = 0;
11330  c->type.n_max = UINT_MAX;
11331  c->mutable = true;
11334 
11335  /* Initialize ovsrec_interface_col_cfm_flap_count. */
11337  c->name = "cfm_flap_count";
11340  c->type.n_min = 0;
11341  c->type.n_max = 1;
11342  c->mutable = true;
11345 
11346  /* Initialize ovsrec_interface_col_cfm_health. */
11348  c->name = "cfm_health";
11350  c->type.key.u.integer.min = INT64_C(0);
11351  c->type.key.u.integer.max = INT64_C(100);
11353  c->type.n_min = 0;
11354  c->type.n_max = 1;
11355  c->mutable = true;
11358 
11359  /* Initialize ovsrec_interface_col_cfm_mpid. */
11361  c->name = "cfm_mpid";
11364  c->type.n_min = 0;
11365  c->type.n_max = 1;
11366  c->mutable = true;
11369 
11370  /* Initialize ovsrec_interface_col_cfm_remote_mpids. */
11372  c->name = "cfm_remote_mpids";
11375  c->type.n_min = 0;
11376  c->type.n_max = UINT_MAX;
11377  c->mutable = true;
11380 
11381  /* Initialize ovsrec_interface_col_cfm_remote_opstate. */
11383  c->name = "cfm_remote_opstate";
11385  c->type.key.enum_ = xmalloc(sizeof *c->type.key.enum_);
11386  c->type.key.enum_->n = 2;
11387  c->type.key.enum_->keys = xmalloc(2 * sizeof *c->type.key.enum_->keys);
11388  c->type.key.enum_->keys[0].string = xstrdup("down");
11389  c->type.key.enum_->keys[1].string = xstrdup("up");
11390  c->type.key.enum_->values = NULL;
11392  c->type.key.u.string.minLen = 0;
11394  c->type.n_min = 0;
11395  c->type.n_max = 1;
11396  c->mutable = true;
11399 
11400  /* Initialize ovsrec_interface_col_duplex. */
11402  c->name = "duplex";
11404  c->type.key.enum_ = xmalloc(sizeof *c->type.key.enum_);
11405  c->type.key.enum_->n = 2;
11406  c->type.key.enum_->keys = xmalloc(2 * sizeof *c->type.key.enum_->keys);
11407  c->type.key.enum_->keys[0].string = xstrdup("full");
11408  c->type.key.enum_->keys[1].string = xstrdup("half");
11409  c->type.key.enum_->values = NULL;
11411  c->type.key.u.string.minLen = 0;
11413  c->type.n_min = 0;
11414  c->type.n_max = 1;
11415  c->mutable = true;
11418 
11419  /* Initialize ovsrec_interface_col_error. */
11421  c->name = "error";
11423  c->type.key.u.string.minLen = 0;
11425  c->type.n_min = 0;
11426  c->type.n_max = 1;
11427  c->mutable = true;
11430 
11431  /* Initialize ovsrec_interface_col_external_ids. */
11433  c->name = "external_ids";
11435  c->type.key.u.string.minLen = 0;
11437  c->type.value.u.string.minLen = 0;
11438  c->type.n_min = 0;
11439  c->type.n_max = UINT_MAX;
11440  c->mutable = true;
11443 
11444  /* Initialize ovsrec_interface_col_ifindex. */
11446  c->name = "ifindex";
11448  c->type.key.u.integer.min = INT64_C(0);
11449  c->type.key.u.integer.max = INT64_C(4294967295);
11451  c->type.n_min = 0;
11452  c->type.n_max = 1;
11453  c->mutable = true;
11456 
11457  /* Initialize ovsrec_interface_col_ingress_policing_burst. */
11459  c->name = "ingress_policing_burst";
11461  c->type.key.u.integer.min = INT64_C(0);
11463  c->type.n_min = 1;
11464  c->type.n_max = 1;
11465  c->mutable = true;
11468 
11469  /* Initialize ovsrec_interface_col_ingress_policing_rate. */
11471  c->name = "ingress_policing_rate";
11473  c->type.key.u.integer.min = INT64_C(0);
11475  c->type.n_min = 1;
11476  c->type.n_max = 1;
11477  c->mutable = true;
11480 
11481  /* Initialize ovsrec_interface_col_lacp_current. */
11483  c->name = "lacp_current";
11486  c->type.n_min = 0;
11487  c->type.n_max = 1;
11488  c->mutable = true;
11491 
11492  /* Initialize ovsrec_interface_col_link_resets. */
11494  c->name = "link_resets";
11497  c->type.n_min = 0;
11498  c->type.n_max = 1;
11499  c->mutable = true;
11502 
11503  /* Initialize ovsrec_interface_col_link_speed. */
11505  c->name = "link_speed";
11508  c->type.n_min = 0;
11509  c->type.n_max = 1;
11510  c->mutable = true;
11513 
11514  /* Initialize ovsrec_interface_col_link_state. */
11516  c->name = "link_state";
11518  c->type.key.enum_ = xmalloc(sizeof *c->type.key.enum_);
11519  c->type.key.enum_->n = 2;
11520  c->type.key.enum_->keys = xmalloc(2 * sizeof *c->type.key.enum_->keys);
11521  c->type.key.enum_->keys[0].string = xstrdup("down");
11522  c->type.key.enum_->keys[1].string = xstrdup("up");
11523  c->type.key.enum_->values = NULL;
11525  c->type.key.u.string.minLen = 0;
11527  c->type.n_min = 0;
11528  c->type.n_max = 1;
11529  c->mutable = true;
11532 
11533  /* Initialize ovsrec_interface_col_lldp. */
11535  c->name = "lldp";
11537  c->type.key.u.string.minLen = 0;
11539  c->type.value.u.string.minLen = 0;
11540  c->type.n_min = 0;
11541  c->type.n_max = UINT_MAX;
11542  c->mutable = true;
11545 
11546  /* Initialize ovsrec_interface_col_mac. */
11548  c->name = "mac";
11550  c->type.key.u.string.minLen = 0;
11552  c->type.n_min = 0;
11553  c->type.n_max = 1;
11554  c->mutable = true;
11557 
11558  /* Initialize ovsrec_interface_col_mac_in_use. */
11560  c->name = "mac_in_use";
11562  c->type.key.u.string.minLen = 0;
11564  c->type.n_min = 0;
11565  c->type.n_max = 1;
11566  c->mutable = true;
11569 
11570  /* Initialize ovsrec_interface_col_mtu. */
11572  c->name = "mtu";
11575  c->type.n_min = 0;
11576  c->type.n_max = 1;
11577  c->mutable = true;
11580 
11581  /* Initialize ovsrec_interface_col_name. */
11583  c->name = "name";
11585  c->type.key.u.string.minLen = 0;
11587  c->type.n_min = 1;
11588  c->type.n_max = 1;
11589  c->mutable = false;
11592 
11593  /* Initialize ovsrec_interface_col_ofport. */
11595  c->name = "ofport";
11598  c->type.n_min = 0;
11599  c->type.n_max = 1;
11600  c->mutable = true;
11603 
11604  /* Initialize ovsrec_interface_col_ofport_request. */
11606  c->name = "ofport_request";
11608  c->type.key.u.integer.min = INT64_C(1);
11609  c->type.key.u.integer.max = INT64_C(65279);
11611  c->type.n_min = 0;
11612  c->type.n_max = 1;
11613  c->mutable = true;
11616 
11617  /* Initialize ovsrec_interface_col_options. */
11619  c->name = "options";
11621  c->type.key.u.string.minLen = 0;
11623  c->type.value.u.string.minLen = 0;
11624  c->type.n_min = 0;
11625  c->type.n_max = UINT_MAX;
11626  c->mutable = true;
11629 
11630  /* Initialize ovsrec_interface_col_other_config. */
11632  c->name = "other_config";
11634  c->type.key.u.string.minLen = 0;
11636  c->type.value.u.string.minLen = 0;
11637  c->type.n_min = 0;
11638  c->type.n_max = UINT_MAX;
11639  c->mutable = true;
11642 
11643  /* Initialize ovsrec_interface_col_statistics. */
11645  c->name = "statistics";
11647  c->type.key.u.string.minLen = 0;
11649  c->type.n_min = 0;
11650  c->type.n_max = UINT_MAX;
11651  c->mutable = true;
11654 
11655  /* Initialize ovsrec_interface_col_status. */
11657  c->name = "status";
11659  c->type.key.u.string.minLen = 0;
11661  c->type.value.u.string.minLen = 0;
11662  c->type.n_min = 0;
11663  c->type.n_max = UINT_MAX;
11664  c->mutable = true;
11667 
11668  /* Initialize ovsrec_interface_col_type. */
11670  c->name = "type";
11672  c->type.key.u.string.minLen = 0;
11674  c->type.n_min = 1;
11675  c->type.n_max = 1;
11676  c->mutable = true;
11679 }
void(* unparse)(struct ovsdb_idl_row *)
Definition: ovsdb-idl-provider.h:46
#define ovsrec_interface_col_admin_state
Definition: vswitch-idl.h:864
#define ovsrec_interface_col_lldp
Definition: vswitch-idl.h:859
Definition: ovsdb-idl-provider.h:41
static void ovsrec_interface_parse_link_resets(struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
Definition: vswitch-idl.c:7920
#define ovsrec_interface_col_name
Definition: vswitch-idl.h:867
#define ovsrec_interface_col_link_resets
Definition: vswitch-idl.h:850
static void ovsrec_interface_parse_link_speed(struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
Definition: vswitch-idl.c:7939
static void ovsrec_interface_parse_ingress_policing_rate(struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
Definition: vswitch-idl.c:7888
static void ovsrec_interface_unparse_bfd(struct ovsdb_idl_row *row_)
Definition: vswitch-idl.c:8167
static void ovsrec_interface_parse_statistics(struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
Definition: vswitch-idl.c:8112
static void ovsrec_interface_unparse_link_resets(struct ovsdb_idl_row *row_)
Definition: vswitch-idl.c:8296
static void ovsrec_interface_parse_ingress_policing_burst(struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
Definition: vswitch-idl.c:7875
static void ovsrec_interface_unparse_ingress_policing_burst(struct ovsdb_idl_row *row OVS_UNUSED)
Definition: vswitch-idl.c:8275
struct ovsdb_base_type::@145::ovsdb_string_constraints string
static void ovsrec_interface_unparse_other_config(struct ovsdb_idl_row *row_)
Definition: vswitch-idl.c:8383
static void ovsrec_interface_parse_other_config(struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
Definition: vswitch-idl.c:8097
static void ovsrec_interface_unparse_link_state(struct ovsdb_idl_row *row OVS_UNUSED)
Definition: vswitch-idl.c:8314
#define ovsrec_interface_col_duplex
Definition: vswitch-idl.h:853
static void ovsrec_interface_parse_type(struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
Definition: vswitch-idl.c:8148
static void ovsrec_interface_unparse_admin_state(struct ovsdb_idl_row *row OVS_UNUSED)
Definition: vswitch-idl.c:8161
static void ovsrec_interface_unparse_link_speed(struct ovsdb_idl_row *row_)
Definition: vswitch-idl.c:8305
#define ovsrec_interface_col_mtu
Definition: vswitch-idl.h:870
#define ovsrec_interface_col_error
Definition: vswitch-idl.h:862
void ovsdb_base_type_init(struct ovsdb_base_type *base, enum ovsdb_atomic_type type)
Definition: ovsdb-types.c:117
union ovsdb_base_type::@145 u
static void ovsrec_interface_unparse_cfm_remote_opstate(struct ovsdb_idl_row *row OVS_UNUSED)
Definition: vswitch-idl.c:8239
static void ovsrec_interface_unparse_error(struct ovsdb_idl_row *row OVS_UNUSED)
Definition: vswitch-idl.c:8251
#define ovsrec_interface_col_cfm_fault_status
Definition: vswitch-idl.h:875
#define ovsrec_interface_col_ifindex
Definition: vswitch-idl.h:873
unsigned int n_min
Definition: ovsdb-types.h:136
static void ovsrec_interface_parse_cfm_remote_opstate(struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
Definition: vswitch-idl.c:7802
struct ovsdb_base_type key
Definition: ovsdb-types.h:134
void(* parse)(struct ovsdb_idl_row *, const struct ovsdb_datum *)
Definition: ovsdb-idl-provider.h:45
#define ovsrec_interface_col_statistics
Definition: vswitch-idl.h:851
unsigned int n_max
Definition: ovsdb-types.h:137
static void ovsrec_interface_parse_ifindex(struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
Definition: vswitch-idl.c:7856
char * string
Definition: ovsdb-data.h:33
Definition: ovsdb-types.h:33
struct ovsdb_base_type value
Definition: ovsdb-types.h:135
char * name
Definition: ovsdb-idl-provider.h:42
void ovsdb_datum_sort_assert(struct ovsdb_datum *datum, enum ovsdb_atomic_type key_type)
Definition: ovsdb-data.c:1074
static void ovsrec_interface_parse_admin_state(struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
Definition: vswitch-idl.c:7647
union ovsdb_atom * keys
Definition: ovsdb-data.h:127
Definition: ovsdb-types.h:30
static void ovsrec_interface_parse_cfm_flap_count(struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
Definition: vswitch-idl.c:7727
static void ovsrec_interface_parse_cfm_health(struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
Definition: vswitch-idl.c:7746
#define ovsrec_interface_col_ingress_policing_burst
Definition: vswitch-idl.h:860
#define ovsrec_interface_col_cfm_health
Definition: vswitch-idl.h:861
static void ovsrec_interface_unparse_external_ids(struct ovsdb_idl_row *row_)
Definition: vswitch-idl.c:8257
#define ovsrec_interface_col_bfd_status
Definition: vswitch-idl.h:855
static void ovsrec_interface_parse_ofport(struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
Definition: vswitch-idl.c:8044
void * xmalloc(size_t size)
Definition: util.c:110
#define ovsrec_interface_col_type
Definition: vswitch-idl.h:856
static void ovsrec_interface_unparse_mac_in_use(struct ovsdb_idl_row *row OVS_UNUSED)
Definition: vswitch-idl.c:8335
union ovsdb_atom * values
Definition: ovsdb-data.h:128
char * xstrdup(const char *s)
Definition: util.c:149
static void ovsrec_interface_unparse_cfm_fault_status(struct ovsdb_idl_row *row_)
Definition: vswitch-idl.c:8194
#define ovsrec_interface_col_mac
Definition: vswitch-idl.h:863
static void ovsrec_interface_unparse_cfm_health(struct ovsdb_idl_row *row_)
Definition: vswitch-idl.c:8212
static void ovsrec_interface_parse_status(struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
Definition: vswitch-idl.c:8133
#define ovsrec_interface_col_ofport
Definition: vswitch-idl.h:866
#define ovsrec_interface_col_external_ids
Definition: vswitch-idl.h:865
static void ovsrec_interface_unparse_ofport_request(struct ovsdb_idl_row *row_)
Definition: vswitch-idl.c:8365
static void ovsrec_interface_unparse_ingress_policing_rate(struct ovsdb_idl_row *row OVS_UNUSED)
Definition: vswitch-idl.c:8281
#define ovsrec_interface_col_status
Definition: vswitch-idl.h:858
static void ovsrec_interface_parse_bfd(struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
Definition: vswitch-idl.c:7660
struct ovsdb_type type
Definition: ovsdb-idl-provider.h:43
#define ovsrec_interface_col_bfd
Definition: vswitch-idl.h:852
unsigned int n
Definition: ovsdb-data.h:126
static void ovsrec_interface_parse_lacp_current(struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
Definition: vswitch-idl.c:7901
#define ovsrec_interface_col_cfm_remote_opstate
Definition: vswitch-idl.h:845
#define ovsrec_interface_col_cfm_fault
Definition: vswitch-idl.h:847
static void ovsrec_interface_unparse_mac(struct ovsdb_idl_row *row OVS_UNUSED)
Definition: vswitch-idl.c:8329
bool mutable
Definition: ovsdb-idl-provider.h:44
static void ovsrec_interface_unparse_status(struct ovsdb_idl_row *row_)
Definition: vswitch-idl.c:8402
#define ovsrec_interface_col_cfm_remote_mpids
Definition: vswitch-idl.h:876
Definition: ovsdb-types.h:29
static void ovsrec_interface_parse_lldp(struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
Definition: vswitch-idl.c:7971
#define ovsrec_interface_col_link_state
Definition: vswitch-idl.h:846
static void ovsrec_interface_parse_cfm_fault_status(struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
Definition: vswitch-idl.c:7709
#define ovsrec_interface_col_link_speed
Definition: vswitch-idl.h:869
static void ovsrec_interface_unparse_cfm_fault(struct ovsdb_idl_row *row_)
Definition: vswitch-idl.c:8185
static void ovsrec_interface_parse_cfm_fault(struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
Definition: vswitch-idl.c:7690
static void ovsrec_interface_parse_mtu(struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
Definition: vswitch-idl.c:8012
#define ovsrec_interface_col_other_config
Definition: vswitch-idl.h:868
static void ovsrec_interface_unparse_lacp_current(struct ovsdb_idl_row *row_)
Definition: vswitch-idl.c:8287
static void ovsrec_interface_unparse_ofport(struct ovsdb_idl_row *row_)
Definition: vswitch-idl.c:8356
static void ovsrec_interface_unparse_name(struct ovsdb_idl_row *row OVS_UNUSED)
Definition: vswitch-idl.c:8350
struct ovsdb_base_type::@145::ovsdb_integer_constraints integer
#define ovsrec_interface_col_cfm_flap_count
Definition: vswitch-idl.h:871
static void ovsrec_interface_unparse_cfm_mpid(struct ovsdb_idl_row *row_)
Definition: vswitch-idl.c:8221
static void ovsrec_interface_parse_cfm_remote_mpids(struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
Definition: vswitch-idl.c:7784
static void ovsrec_interface_unparse_cfm_flap_count(struct ovsdb_idl_row *row_)
Definition: vswitch-idl.c:8203
static void ovsrec_interface_unparse_bfd_status(struct ovsdb_idl_row *row_)
Definition: vswitch-idl.c:8176
static void ovsrec_interface_parse_mac(struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
Definition: vswitch-idl.c:7986
static void ovsrec_interface_unparse_lldp(struct ovsdb_idl_row *row_)
Definition: vswitch-idl.c:8320
static void ovsrec_interface_parse_external_ids(struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
Definition: vswitch-idl.c:7841
static void ovsrec_interface_parse_error(struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
Definition: vswitch-idl.c:7828
#define ovsrec_interface_col_cfm_mpid
Definition: vswitch-idl.h:872
static void ovsrec_interface_unparse_mtu(struct ovsdb_idl_row *row_)
Definition: vswitch-idl.c:8341
static void ovsrec_interface_unparse_options(struct ovsdb_idl_row *row_)
Definition: vswitch-idl.c:8374
#define ovsrec_interface_col_mac_in_use
Definition: vswitch-idl.h:854
static void ovsrec_interface_unparse_cfm_remote_mpids(struct ovsdb_idl_row *row_)
Definition: vswitch-idl.c:8230
static void ovsrec_interface_unparse_duplex(struct ovsdb_idl_row *row OVS_UNUSED)
Definition: vswitch-idl.c:8245
#define ovsrec_interface_col_ingress_policing_rate
Definition: vswitch-idl.h:849
static void ovsrec_interface_parse_ofport_request(struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
Definition: vswitch-idl.c:8063
Definition: ovsdb-types.h:32
static void ovsrec_interface_parse_mac_in_use(struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
Definition: vswitch-idl.c:7999
static void ovsrec_interface_unparse_ifindex(struct ovsdb_idl_row *row_)
Definition: vswitch-idl.c:8266
static void ovsrec_interface_unparse_type(struct ovsdb_idl_row *row OVS_UNUSED)
Definition: vswitch-idl.c:8411
static void ovsrec_interface_unparse_statistics(struct ovsdb_idl_row *row_)
Definition: vswitch-idl.c:8392
struct ovsdb_datum * enum_
Definition: ovsdb-types.h:57
#define ovsrec_interface_col_lacp_current
Definition: vswitch-idl.h:857
static void ovsrec_interface_parse_name(struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
Definition: vswitch-idl.c:8031
static void ovsrec_interface_parse_duplex(struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
Definition: vswitch-idl.c:7815
static void ovsrec_interface_parse_cfm_mpid(struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
Definition: vswitch-idl.c:7765
static void ovsrec_interface_parse_bfd_status(struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
Definition: vswitch-idl.c:7675
#define ovsrec_interface_col_options
Definition: vswitch-idl.h:874
#define ovsrec_interface_col_ofport_request
Definition: vswitch-idl.h:848
static void ovsrec_interface_parse_options(struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
Definition: vswitch-idl.c:8082
static void ovsrec_interface_parse_link_state(struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
Definition: vswitch-idl.c:7958
void ovsrec_interface_delete ( const struct ovsrec_interface row)
8470 {
8472 }
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:695
void ovsdb_idl_txn_delete(const struct ovsdb_idl_row *row_)
Definition: ovsdb-idl.c:2208
const struct ovsrec_interface* ovsrec_interface_first ( const struct ovsdb_idl idl)
8452 {
8454 }
struct ovsdb_idl_table_class ovsrec_table_classes[OVSREC_N_TABLES]
Definition: vswitch-idl.c:21482
Definition: vswitch-idl.h:1920
static struct ovsrec_interface * ovsrec_interface_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:58
const struct ovsdb_idl_row * ovsdb_idl_first_row(const struct ovsdb_idl *idl, const struct ovsdb_idl_table_class *table_class)
Definition: ovsdb-idl.c:1290
const struct ovsdb_datum* ovsrec_interface_get_admin_state ( const struct ovsrec_interface row,
enum ovsdb_atomic_type key_type  OVS_UNUSED 
)
9533 {
9534  ovs_assert(key_type == OVSDB_TYPE_STRING);
9536 }
#define ovsrec_interface_col_admin_state
Definition: vswitch-idl.h:864
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: ovsdb-types.h:33
const struct ovsdb_datum * ovsdb_idl_read(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column)
Definition: ovsdb-idl.c:1320
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:695
const struct ovsdb_datum* ovsrec_interface_get_bfd ( const struct ovsrec_interface row,
enum ovsdb_atomic_type key_type  OVS_UNUSED,
enum ovsdb_atomic_type value_type  OVS_UNUSED 
)
9562 {
9563  ovs_assert(key_type == OVSDB_TYPE_STRING);
9564  ovs_assert(value_type == OVSDB_TYPE_STRING);
9566 }
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: ovsdb-types.h:33
#define ovsrec_interface_col_bfd
Definition: vswitch-idl.h:852
const struct ovsdb_datum * ovsdb_idl_read(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column)
Definition: ovsdb-idl.c:1320
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:695
const struct ovsdb_datum* ovsrec_interface_get_bfd_status ( const struct ovsrec_interface row,
enum ovsdb_atomic_type key_type  OVS_UNUSED,
enum ovsdb_atomic_type value_type  OVS_UNUSED 
)
9592 {
9593  ovs_assert(key_type == OVSDB_TYPE_STRING);
9594  ovs_assert(value_type == OVSDB_TYPE_STRING);
9596 }
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: ovsdb-types.h:33
#define ovsrec_interface_col_bfd_status
Definition: vswitch-idl.h:855
const struct ovsdb_datum * ovsdb_idl_read(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column)
Definition: ovsdb-idl.c:1320
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:695
const struct ovsdb_datum* ovsrec_interface_get_cfm_fault ( const struct ovsrec_interface row,
enum ovsdb_atomic_type key_type  OVS_UNUSED 
)
9620 {
9621  ovs_assert(key_type == OVSDB_TYPE_BOOLEAN);
9623 }
#define ovs_assert(CONDITION)
Definition: util.h:73
#define ovsrec_interface_col_cfm_fault
Definition: vswitch-idl.h:847
const struct ovsdb_datum * ovsdb_idl_read(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column)
Definition: ovsdb-idl.c:1320
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:695
Definition: ovsdb-types.h:32
const struct ovsdb_datum* ovsrec_interface_get_cfm_fault_status ( const struct ovsrec_interface row,
enum ovsdb_atomic_type key_type  OVS_UNUSED 
)
9647 {
9648  ovs_assert(key_type == OVSDB_TYPE_STRING);
9650 }
#define ovs_assert(CONDITION)
Definition: util.h:73
#define ovsrec_interface_col_cfm_fault_status
Definition: vswitch-idl.h:875
Definition: ovsdb-types.h:33
const struct ovsdb_datum * ovsdb_idl_read(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column)
Definition: ovsdb-idl.c:1320
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:695
const struct ovsdb_datum* ovsrec_interface_get_cfm_flap_count ( const struct ovsrec_interface row,
enum ovsdb_atomic_type key_type  OVS_UNUSED 
)
9674 {
9675  ovs_assert(key_type == OVSDB_TYPE_INTEGER);
9677 }
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: ovsdb-types.h:30
const struct ovsdb_datum * ovsdb_idl_read(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column)
Definition: ovsdb-idl.c:1320
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:695
#define ovsrec_interface_col_cfm_flap_count
Definition: vswitch-idl.h:871
const struct ovsdb_datum* ovsrec_interface_get_cfm_health ( const struct ovsrec_interface row,
enum ovsdb_atomic_type key_type  OVS_UNUSED 
)
9701 {
9702  ovs_assert(key_type == OVSDB_TYPE_INTEGER);
9704 }
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: ovsdb-types.h:30
#define ovsrec_interface_col_cfm_health
Definition: vswitch-idl.h:861
const struct ovsdb_datum * ovsdb_idl_read(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column)
Definition: ovsdb-idl.c:1320
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:695
const struct ovsdb_datum* ovsrec_interface_get_cfm_mpid ( const struct ovsrec_interface row,
enum ovsdb_atomic_type key_type  OVS_UNUSED 
)
9728 {
9729  ovs_assert(key_type == OVSDB_TYPE_INTEGER);
9731 }
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: ovsdb-types.h:30
const struct ovsdb_datum * ovsdb_idl_read(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column)
Definition: ovsdb-idl.c:1320
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:695
#define ovsrec_interface_col_cfm_mpid
Definition: vswitch-idl.h:872
const struct ovsdb_datum* ovsrec_interface_get_cfm_remote_mpids ( const struct ovsrec_interface row,
enum ovsdb_atomic_type key_type  OVS_UNUSED 
)
9755 {
9756  ovs_assert(key_type == OVSDB_TYPE_INTEGER);
9758 }
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: ovsdb-types.h:30
#define ovsrec_interface_col_cfm_remote_mpids
Definition: vswitch-idl.h:876
const struct ovsdb_datum * ovsdb_idl_read(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column)
Definition: ovsdb-idl.c:1320
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:695
const struct ovsdb_datum* ovsrec_interface_get_cfm_remote_opstate ( const struct ovsrec_interface row,
enum ovsdb_atomic_type key_type  OVS_UNUSED 
)
9782 {
9783  ovs_assert(key_type == OVSDB_TYPE_STRING);
9785 }
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: ovsdb-types.h:33
#define ovsrec_interface_col_cfm_remote_opstate
Definition: vswitch-idl.h:845
const struct ovsdb_datum * ovsdb_idl_read(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column)
Definition: ovsdb-idl.c:1320
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:695
const struct ovsdb_datum* ovsrec_interface_get_duplex ( const struct ovsrec_interface row,
enum ovsdb_atomic_type key_type  OVS_UNUSED 
)
9809 {
9810  ovs_assert(key_type == OVSDB_TYPE_STRING);
9812 }
#define ovsrec_interface_col_duplex
Definition: vswitch-idl.h:853
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: ovsdb-types.h:33
const struct ovsdb_datum * ovsdb_idl_read(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column)
Definition: ovsdb-idl.c:1320
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:695
const struct ovsdb_datum* ovsrec_interface_get_error ( const struct ovsrec_interface row,
enum ovsdb_atomic_type key_type  OVS_UNUSED 
)
9836 {
9837  ovs_assert(key_type == OVSDB_TYPE_STRING);
9839 }
#define ovs_assert(CONDITION)
Definition: util.h:73
#define ovsrec_interface_col_error
Definition: vswitch-idl.h:862
Definition: ovsdb-types.h:33
const struct ovsdb_datum * ovsdb_idl_read(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column)
Definition: ovsdb-idl.c:1320
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:695
const struct ovsdb_datum* ovsrec_interface_get_external_ids ( const struct ovsrec_interface row,
enum ovsdb_atomic_type key_type  OVS_UNUSED,
enum ovsdb_atomic_type value_type  OVS_UNUSED 
)
9865 {
9866  ovs_assert(key_type == OVSDB_TYPE_STRING);
9867  ovs_assert(value_type == OVSDB_TYPE_STRING);
9869 }
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: ovsdb-types.h:33
#define ovsrec_interface_col_external_ids
Definition: vswitch-idl.h:865
const struct ovsdb_datum * ovsdb_idl_read(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column)
Definition: ovsdb-idl.c:1320
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:695
const struct ovsrec_interface* ovsrec_interface_get_for_uuid ( const struct ovsdb_idl idl,
const struct uuid uuid 
)
8440 {
8442 }
const struct ovsdb_idl_row * ovsdb_idl_get_row_for_uuid(const struct ovsdb_idl *idl, const struct ovsdb_idl_table_class *tc, const struct uuid *uuid)
Definition: ovsdb-idl.c:1262
struct ovsdb_idl_table_class ovsrec_table_classes[OVSREC_N_TABLES]
Definition: vswitch-idl.c:21482
Definition: vswitch-idl.h:1920
static struct ovsrec_interface * ovsrec_interface_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:58
const struct ovsdb_datum* ovsrec_interface_get_ifindex ( const struct ovsrec_interface row,
enum ovsdb_atomic_type key_type  OVS_UNUSED 
)
9893 {
9894  ovs_assert(key_type == OVSDB_TYPE_INTEGER);
9896 }
#define ovs_assert(CONDITION)
Definition: util.h:73
#define ovsrec_interface_col_ifindex
Definition: vswitch-idl.h:873
Definition: ovsdb-types.h:30
const struct ovsdb_datum * ovsdb_idl_read(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column)
Definition: ovsdb-idl.c:1320
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:695
const struct ovsdb_datum* ovsrec_interface_get_ingress_policing_burst ( const struct ovsrec_interface row,
enum ovsdb_atomic_type key_type  OVS_UNUSED 
)
9920 {
9921  ovs_assert(key_type == OVSDB_TYPE_INTEGER);
9923 }
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: ovsdb-types.h:30
#define ovsrec_interface_col_ingress_policing_burst
Definition: vswitch-idl.h:860
const struct ovsdb_datum * ovsdb_idl_read(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column)
Definition: ovsdb-idl.c:1320
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:695
const struct ovsdb_datum* ovsrec_interface_get_ingress_policing_rate ( const struct ovsrec_interface row,
enum ovsdb_atomic_type key_type  OVS_UNUSED 
)
9947 {
9948  ovs_assert(key_type == OVSDB_TYPE_INTEGER);
9950 }
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: ovsdb-types.h:30
const struct ovsdb_datum * ovsdb_idl_read(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column)
Definition: ovsdb-idl.c:1320
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:695
#define ovsrec_interface_col_ingress_policing_rate
Definition: vswitch-idl.h:849
const struct ovsdb_datum* ovsrec_interface_get_lacp_current ( const struct ovsrec_interface row,
enum ovsdb_atomic_type key_type  OVS_UNUSED 
)
9974 {
9975  ovs_assert(key_type == OVSDB_TYPE_BOOLEAN);
9977 }
#define ovs_assert(CONDITION)
Definition: util.h:73
const struct ovsdb_datum * ovsdb_idl_read(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column)
Definition: ovsdb-idl.c:1320
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:695
Definition: ovsdb-types.h:32
#define ovsrec_interface_col_lacp_current
Definition: vswitch-idl.h:857
const struct ovsdb_datum* ovsrec_interface_get_link_resets ( const struct ovsrec_interface row,
enum ovsdb_atomic_type key_type  OVS_UNUSED 
)
10001 {
10002  ovs_assert(key_type == OVSDB_TYPE_INTEGER);
10004 }
#define ovsrec_interface_col_link_resets
Definition: vswitch-idl.h:850
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: ovsdb-types.h:30
const struct ovsdb_datum * ovsdb_idl_read(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column)
Definition: ovsdb-idl.c:1320
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:695
const struct ovsdb_datum* ovsrec_interface_get_link_speed ( const struct ovsrec_interface row,
enum ovsdb_atomic_type key_type  OVS_UNUSED 
)
10028 {
10029  ovs_assert(key_type == OVSDB_TYPE_INTEGER);
10031 }
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: ovsdb-types.h:30
#define ovsrec_interface_col_link_speed
Definition: vswitch-idl.h:869
const struct ovsdb_datum * ovsdb_idl_read(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column)
Definition: ovsdb-idl.c:1320
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:695
const struct ovsdb_datum* ovsrec_interface_get_link_state ( const struct ovsrec_interface row,
enum ovsdb_atomic_type key_type  OVS_UNUSED 
)
10055 {
10056  ovs_assert(key_type == OVSDB_TYPE_STRING);
10058 }
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: ovsdb-types.h:33
#define ovsrec_interface_col_link_state
Definition: vswitch-idl.h:846
const struct ovsdb_datum * ovsdb_idl_read(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column)
Definition: ovsdb-idl.c:1320
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:695
const struct ovsdb_datum* ovsrec_interface_get_lldp ( const struct ovsrec_interface row,
enum ovsdb_atomic_type key_type  OVS_UNUSED,
enum ovsdb_atomic_type value_type  OVS_UNUSED 
)
10084 {
10085  ovs_assert(key_type == OVSDB_TYPE_STRING);
10086  ovs_assert(value_type == OVSDB_TYPE_STRING);
10088 }
#define ovsrec_interface_col_lldp
Definition: vswitch-idl.h:859
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: ovsdb-types.h:33
const struct ovsdb_datum * ovsdb_idl_read(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column)
Definition: ovsdb-idl.c:1320
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:695
const struct ovsdb_datum* ovsrec_interface_get_mac ( const struct ovsrec_interface row,
enum ovsdb_atomic_type key_type  OVS_UNUSED 
)
10112 {
10113  ovs_assert(key_type == OVSDB_TYPE_STRING);
10115 }
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: ovsdb-types.h:33
#define ovsrec_interface_col_mac
Definition: vswitch-idl.h:863
const struct ovsdb_datum * ovsdb_idl_read(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column)
Definition: ovsdb-idl.c:1320
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:695
const struct ovsdb_datum* ovsrec_interface_get_mac_in_use ( const struct ovsrec_interface row,
enum ovsdb_atomic_type key_type  OVS_UNUSED 
)
10139 {
10140  ovs_assert(key_type == OVSDB_TYPE_STRING);
10142 }
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: ovsdb-types.h:33
const struct ovsdb_datum * ovsdb_idl_read(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column)
Definition: ovsdb-idl.c:1320
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:695
#define ovsrec_interface_col_mac_in_use
Definition: vswitch-idl.h:854
const struct ovsdb_datum* ovsrec_interface_get_mtu ( const struct ovsrec_interface row,
enum ovsdb_atomic_type key_type  OVS_UNUSED 
)
10166 {
10167  ovs_assert(key_type == OVSDB_TYPE_INTEGER);
10169 }
#define ovs_assert(CONDITION)
Definition: util.h:73
#define ovsrec_interface_col_mtu
Definition: vswitch-idl.h:870
Definition: ovsdb-types.h:30
const struct ovsdb_datum * ovsdb_idl_read(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column)
Definition: ovsdb-idl.c:1320
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:695
const struct ovsdb_datum* ovsrec_interface_get_name ( const struct ovsrec_interface row,
enum ovsdb_atomic_type key_type  OVS_UNUSED 
)
10193 {
10194  ovs_assert(key_type == OVSDB_TYPE_STRING);
10196 }
#define ovsrec_interface_col_name
Definition: vswitch-idl.h:867
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: ovsdb-types.h:33
const struct ovsdb_datum * ovsdb_idl_read(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column)
Definition: ovsdb-idl.c:1320
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:695
const struct ovsdb_datum* ovsrec_interface_get_ofport ( const struct ovsrec_interface row,
enum ovsdb_atomic_type key_type  OVS_UNUSED 
)
10220 {
10221  ovs_assert(key_type == OVSDB_TYPE_INTEGER);
10223 }
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: ovsdb-types.h:30
#define ovsrec_interface_col_ofport
Definition: vswitch-idl.h:866
const struct ovsdb_datum * ovsdb_idl_read(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column)
Definition: ovsdb-idl.c:1320
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:695
const struct ovsdb_datum* ovsrec_interface_get_ofport_request ( const struct ovsrec_interface row,
enum ovsdb_atomic_type key_type  OVS_UNUSED 
)
10247 {
10248  ovs_assert(key_type == OVSDB_TYPE_INTEGER);
10250 }
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: ovsdb-types.h:30
const struct ovsdb_datum * ovsdb_idl_read(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column)
Definition: ovsdb-idl.c:1320
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:695
#define ovsrec_interface_col_ofport_request
Definition: vswitch-idl.h:848
const struct ovsdb_datum* ovsrec_interface_get_options ( const struct ovsrec_interface row,
enum ovsdb_atomic_type key_type  OVS_UNUSED,
enum ovsdb_atomic_type value_type  OVS_UNUSED 
)
10276 {
10277  ovs_assert(key_type == OVSDB_TYPE_STRING);
10278  ovs_assert(value_type == OVSDB_TYPE_STRING);
10280 }
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: ovsdb-types.h:33
const struct ovsdb_datum * ovsdb_idl_read(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column)
Definition: ovsdb-idl.c:1320
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:695
#define ovsrec_interface_col_options
Definition: vswitch-idl.h:874
const struct ovsdb_datum* ovsrec_interface_get_other_config ( const struct ovsrec_interface row,
enum ovsdb_atomic_type key_type  OVS_UNUSED,
enum ovsdb_atomic_type value_type  OVS_UNUSED 
)
10306 {
10307  ovs_assert(key_type == OVSDB_TYPE_STRING);
10308  ovs_assert(value_type == OVSDB_TYPE_STRING);
10310 }
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: ovsdb-types.h:33
#define ovsrec_interface_col_other_config
Definition: vswitch-idl.h:868
const struct ovsdb_datum * ovsdb_idl_read(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column)
Definition: ovsdb-idl.c:1320
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:695
const struct ovsdb_datum* ovsrec_interface_get_statistics ( const struct ovsrec_interface row,
enum ovsdb_atomic_type key_type  OVS_UNUSED,
enum ovsdb_atomic_type value_type  OVS_UNUSED 
)
10336 {
10337  ovs_assert(key_type == OVSDB_TYPE_STRING);
10338  ovs_assert(value_type == OVSDB_TYPE_INTEGER);
10340 }
#define ovs_assert(CONDITION)
Definition: util.h:73
#define ovsrec_interface_col_statistics
Definition: vswitch-idl.h:851
Definition: ovsdb-types.h:33
Definition: ovsdb-types.h:30
const struct ovsdb_datum * ovsdb_idl_read(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column)
Definition: ovsdb-idl.c:1320
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:695
const struct ovsdb_datum* ovsrec_interface_get_status ( const struct ovsrec_interface row,
enum ovsdb_atomic_type key_type  OVS_UNUSED,
enum ovsdb_atomic_type value_type  OVS_UNUSED 
)
10366 {
10367  ovs_assert(key_type == OVSDB_TYPE_STRING);
10368  ovs_assert(value_type == OVSDB_TYPE_STRING);
10370 }
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: ovsdb-types.h:33
#define ovsrec_interface_col_status
Definition: vswitch-idl.h:858
const struct ovsdb_datum * ovsdb_idl_read(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column)
Definition: ovsdb-idl.c:1320
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:695
const struct ovsdb_datum* ovsrec_interface_get_type ( const struct ovsrec_interface row,
enum ovsdb_atomic_type key_type  OVS_UNUSED 
)
10394 {
10395  ovs_assert(key_type == OVSDB_TYPE_STRING);
10397 }
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: ovsdb-types.h:33
#define ovsrec_interface_col_type
Definition: vswitch-idl.h:856
const struct ovsdb_datum * ovsdb_idl_read(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column)
Definition: ovsdb-idl.c:1320
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:695
void ovsrec_interface_init ( struct ovsrec_interface row)
8425 {
8426  memset(row, 0, sizeof *row);
8427  smap_init(&row->bfd);
8428  smap_init(&row->bfd_status);
8429  smap_init(&row->external_ids);
8430  smap_init(&row->lldp);
8431  smap_init(&row->options);
8432  smap_init(&row->other_config);
8433  smap_init(&row->status);
8434 }
void smap_init(struct smap *smap)
Definition: smap.c:33
struct smap status
Definition: vswitch-idl.h:803
struct smap external_ids
Definition: vswitch-idl.h:740
struct smap lldp
Definition: vswitch-idl.h:768
struct smap bfd
Definition: vswitch-idl.h:701
struct smap bfd_status
Definition: vswitch-idl.h:704
struct smap options
Definition: vswitch-idl.h:792
struct smap other_config
Definition: vswitch-idl.h:795
static void ovsrec_interface_init__ ( struct ovsdb_idl_row row)
static
8418 {
8420 }
void ovsrec_interface_init(struct ovsrec_interface *row)
Definition: vswitch-idl.c:8424
static struct ovsrec_interface * ovsrec_interface_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:58
struct ovsrec_interface* ovsrec_interface_insert ( struct ovsdb_idl_txn txn)
8483 {
8485 }
struct ovsdb_idl_table_class ovsrec_table_classes[OVSREC_N_TABLES]
Definition: vswitch-idl.c:21482
Definition: vswitch-idl.h:1920
const struct ovsdb_idl_row * ovsdb_idl_txn_insert(struct ovsdb_idl_txn *txn, const struct ovsdb_idl_table_class *class, const struct uuid *uuid)
Definition: ovsdb-idl.c:2247
static struct ovsrec_interface * ovsrec_interface_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:58
const struct ovsrec_interface* ovsrec_interface_next ( const struct ovsrec_interface row)
8460 {
8462 }
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:695
const struct ovsdb_idl_row * ovsdb_idl_next_row(const struct ovsdb_idl_row *row)
Definition: ovsdb-idl.c:1301
static struct ovsrec_interface * ovsrec_interface_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:58
static void ovsrec_interface_parse_admin_state ( struct ovsdb_idl_row row_,
const struct ovsdb_datum datum 
)
static
7648 {
7649  struct ovsrec_interface *row = ovsrec_interface_cast(row_);
7650 
7651  ovs_assert(inited);
7652  if (datum->n >= 1) {
7653  row->admin_state = datum->keys[0].string;
7654  } else {
7655  row->admin_state = NULL;
7656  }
7657 }
#define ovs_assert(CONDITION)
Definition: util.h:73
char * string
Definition: ovsdb-data.h:33
union ovsdb_atom * keys
Definition: ovsdb-data.h:127
char * admin_state
Definition: vswitch-idl.h:698
Definition: vswitch-idl.h:694
static bool inited
Definition: vswitch-idl.c:18
unsigned int n
Definition: ovsdb-data.h:126
static struct ovsrec_interface * ovsrec_interface_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:58
static void ovsrec_interface_parse_bfd ( struct ovsdb_idl_row row_,
const struct ovsdb_datum datum 
)
static
7661 {
7662  struct ovsrec_interface *row = ovsrec_interface_cast(row_);
7663  size_t i;
7664 
7665  ovs_assert(inited);
7666  smap_init(&row->bfd);
7667  for (i = 0; i < datum->n; i++) {
7668  smap_add(&row->bfd,
7669  datum->keys[i].string,
7670  datum->values[i].string);
7671  }
7672 }
#define ovs_assert(CONDITION)
Definition: util.h:73
void smap_init(struct smap *smap)
Definition: smap.c:33
char * string
Definition: ovsdb-data.h:33
struct smap_node * smap_add(struct smap *smap, const char *key, const char *value)
Definition: smap.c:50
union ovsdb_atom * keys
Definition: ovsdb-data.h:127
union ovsdb_atom * values
Definition: ovsdb-data.h:128
Definition: vswitch-idl.h:694
struct smap bfd
Definition: vswitch-idl.h:701
static bool inited
Definition: vswitch-idl.c:18
unsigned int n
Definition: ovsdb-data.h:126
static struct ovsrec_interface * ovsrec_interface_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:58
static void ovsrec_interface_parse_bfd_status ( struct ovsdb_idl_row row_,
const struct ovsdb_datum datum 
)
static
7676 {
7677  struct ovsrec_interface *row = ovsrec_interface_cast(row_);
7678  size_t i;
7679 
7680  ovs_assert(inited);
7681  smap_init(&row->bfd_status);
7682  for (i = 0; i < datum->n; i++) {
7683  smap_add(&row->bfd_status,
7684  datum->keys[i].string,
7685  datum->values[i].string);
7686  }
7687 }
#define ovs_assert(CONDITION)
Definition: util.h:73
void smap_init(struct smap *smap)
Definition: smap.c:33
char * string
Definition: ovsdb-data.h:33
struct smap_node * smap_add(struct smap *smap, const char *key, const char *value)
Definition: smap.c:50
union ovsdb_atom * keys
Definition: ovsdb-data.h:127
union ovsdb_atom * values
Definition: ovsdb-data.h:128
Definition: vswitch-idl.h:694
static bool inited
Definition: vswitch-idl.c:18
unsigned int n
Definition: ovsdb-data.h:126
struct smap bfd_status
Definition: vswitch-idl.h:704
static struct ovsrec_interface * ovsrec_interface_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:58
static void ovsrec_interface_parse_cfm_fault ( struct ovsdb_idl_row row_,
const struct ovsdb_datum datum 
)
static
7691 {
7692  struct ovsrec_interface *row = ovsrec_interface_cast(row_);
7693  size_t n = MIN(1, datum->n);
7694  size_t i;
7695 
7696  ovs_assert(inited);
7697  row->cfm_fault = NULL;
7698  row->n_cfm_fault = 0;
7699  for (i = 0; i < n; i++) {
7700  if (!row->n_cfm_fault) {
7701  row->cfm_fault = xmalloc(n * sizeof_bool);
7702  }
7703  row->cfm_fault[row->n_cfm_fault] = datum->keys[i].boolean;
7704  row->n_cfm_fault++;
7705  }
7706 }
#define ovs_assert(CONDITION)
Definition: util.h:73
union ovsdb_atom * keys
Definition: ovsdb-data.h:127
void * xmalloc(size_t size)
Definition: util.c:110
Definition: vswitch-idl.h:694
bool boolean
Definition: ovsdb-data.h:32
static bool inited
Definition: vswitch-idl.c:18
unsigned int n
Definition: ovsdb-data.h:126
bool * cfm_fault
Definition: vswitch-idl.h:707
#define MIN(_a, _b)
Definition: Util.h:68
size_t n_cfm_fault
Definition: vswitch-idl.h:708
Definition: vswitch-idl.c:15
static struct ovsrec_interface * ovsrec_interface_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:58
static void ovsrec_interface_parse_cfm_fault_status ( struct ovsdb_idl_row row_,
const struct ovsdb_datum datum 
)
static
7710 {
7711  struct ovsrec_interface *row = ovsrec_interface_cast(row_);
7712  size_t i;
7713 
7714  ovs_assert(inited);
7715  row->cfm_fault_status = NULL;
7716  row->n_cfm_fault_status = 0;
7717  for (i = 0; i < datum->n; i++) {
7718  if (!row->n_cfm_fault_status) {
7719  row->cfm_fault_status = xmalloc(datum->n * sizeof *row->cfm_fault_status);
7720  }
7721  row->cfm_fault_status[row->n_cfm_fault_status] = datum->keys[i].string;
7722  row->n_cfm_fault_status++;
7723  }
7724 }
size_t n_cfm_fault_status
Definition: vswitch-idl.h:712
#define ovs_assert(CONDITION)
Definition: util.h:73
char * string
Definition: ovsdb-data.h:33
union ovsdb_atom * keys
Definition: ovsdb-data.h:127
void * xmalloc(size_t size)
Definition: util.c:110
Definition: vswitch-idl.h:694
static bool inited
Definition: vswitch-idl.c:18
unsigned int n
Definition: ovsdb-data.h:126
char ** cfm_fault_status
Definition: vswitch-idl.h:711
static struct ovsrec_interface * ovsrec_interface_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:58
static void ovsrec_interface_parse_cfm_flap_count ( struct ovsdb_idl_row row_,
const struct ovsdb_datum datum 
)
static
7728 {
7729  struct ovsrec_interface *row = ovsrec_interface_cast(row_);
7730  size_t n = MIN(1, datum->n);
7731  size_t i;
7732 
7733  ovs_assert(inited);
7734  row->cfm_flap_count = NULL;
7735  row->n_cfm_flap_count = 0;
7736  for (i = 0; i < n; i++) {
7737  if (!row->n_cfm_flap_count) {
7738  row->cfm_flap_count = xmalloc(n * sizeof *row->cfm_flap_count);
7739  }
7740  row->cfm_flap_count[row->n_cfm_flap_count] = datum->keys[i].integer;
7741  row->n_cfm_flap_count++;
7742  }
7743 }
int64_t integer
Definition: ovsdb-data.h:30
#define ovs_assert(CONDITION)
Definition: util.h:73
int64_t * cfm_flap_count
Definition: vswitch-idl.h:715
union ovsdb_atom * keys
Definition: ovsdb-data.h:127
void * xmalloc(size_t size)
Definition: util.c:110
Definition: vswitch-idl.h:694
static bool inited
Definition: vswitch-idl.c:18
unsigned int n
Definition: ovsdb-data.h:126
#define MIN(_a, _b)
Definition: Util.h:68
size_t n_cfm_flap_count
Definition: vswitch-idl.h:716
static struct ovsrec_interface * ovsrec_interface_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:58
static void ovsrec_interface_parse_cfm_health ( struct ovsdb_idl_row row_,
const struct ovsdb_datum datum 
)
static
7747 {
7748  struct ovsrec_interface *row = ovsrec_interface_cast(row_);
7749  size_t n = MIN(1, datum->n);
7750  size_t i;
7751 
7752  ovs_assert(inited);
7753  row->cfm_health = NULL;
7754  row->n_cfm_health = 0;
7755  for (i = 0; i < n; i++) {
7756  if (!row->n_cfm_health) {
7757  row->cfm_health = xmalloc(n * sizeof *row->cfm_health);
7758  }
7759  row->cfm_health[row->n_cfm_health] = datum->keys[i].integer;
7760  row->n_cfm_health++;
7761  }
7762 }
int64_t integer
Definition: ovsdb-data.h:30
#define ovs_assert(CONDITION)
Definition: util.h:73
union ovsdb_atom * keys
Definition: ovsdb-data.h:127
void * xmalloc(size_t size)
Definition: util.c:110
Definition: vswitch-idl.h:694
size_t n_cfm_health
Definition: vswitch-idl.h:720
static bool inited
Definition: vswitch-idl.c:18
int64_t * cfm_health
Definition: vswitch-idl.h:719
unsigned int n
Definition: ovsdb-data.h:126
#define MIN(_a, _b)
Definition: Util.h:68
static struct ovsrec_interface * ovsrec_interface_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:58
static void ovsrec_interface_parse_cfm_mpid ( struct ovsdb_idl_row row_,
const struct ovsdb_datum datum 
)
static
7766 {
7767  struct ovsrec_interface *row = ovsrec_interface_cast(row_);
7768  size_t n = MIN(1, datum->n);
7769  size_t i;
7770 
7771  ovs_assert(inited);
7772  row->cfm_mpid = NULL;
7773  row->n_cfm_mpid = 0;
7774  for (i = 0; i < n; i++) {
7775  if (!row->n_cfm_mpid) {
7776  row->cfm_mpid = xmalloc(n * sizeof *row->cfm_mpid);
7777  }
7778  row->cfm_mpid[row->n_cfm_mpid] = datum->keys[i].integer;
7779  row->n_cfm_mpid++;
7780  }
7781 }
int64_t integer
Definition: ovsdb-data.h:30
#define ovs_assert(CONDITION)
Definition: util.h:73
int64_t * cfm_mpid
Definition: vswitch-idl.h:723
union ovsdb_atom * keys
Definition: ovsdb-data.h:127
void * xmalloc(size_t size)
Definition: util.c:110
Definition: vswitch-idl.h:694
static bool inited
Definition: vswitch-idl.c:18
unsigned int n
Definition: ovsdb-data.h:126
size_t n_cfm_mpid
Definition: vswitch-idl.h:724
#define MIN(_a, _b)
Definition: Util.h:68
static struct ovsrec_interface * ovsrec_interface_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:58
static void ovsrec_interface_parse_cfm_remote_mpids ( struct ovsdb_idl_row row_,
const struct ovsdb_datum datum 
)
static
7785 {
7786  struct ovsrec_interface *row = ovsrec_interface_cast(row_);
7787  size_t i;
7788 
7789  ovs_assert(inited);
7790  row->cfm_remote_mpids = NULL;
7791  row->n_cfm_remote_mpids = 0;
7792  for (i = 0; i < datum->n; i++) {
7793  if (!row->n_cfm_remote_mpids) {
7794  row->cfm_remote_mpids = xmalloc(datum->n * sizeof *row->cfm_remote_mpids);
7795  }
7796  row->cfm_remote_mpids[row->n_cfm_remote_mpids] = datum->keys[i].integer;
7797  row->n_cfm_remote_mpids++;
7798  }
7799 }
int64_t integer
Definition: ovsdb-data.h:30
#define ovs_assert(CONDITION)
Definition: util.h:73
union ovsdb_atom * keys
Definition: ovsdb-data.h:127
void * xmalloc(size_t size)
Definition: util.c:110
Definition: vswitch-idl.h:694
static bool inited
Definition: vswitch-idl.c:18
unsigned int n
Definition: ovsdb-data.h:126
int64_t * cfm_remote_mpids
Definition: vswitch-idl.h:727
size_t n_cfm_remote_mpids
Definition: vswitch-idl.h:728
static struct ovsrec_interface * ovsrec_interface_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:58
static void ovsrec_interface_parse_cfm_remote_opstate ( struct ovsdb_idl_row row_,
const struct ovsdb_datum datum 
)
static
7803 {
7804  struct ovsrec_interface *row = ovsrec_interface_cast(row_);
7805 
7806  ovs_assert(inited);
7807  if (datum->n >= 1) {
7808  row->cfm_remote_opstate = datum->keys[0].string;
7809  } else {
7810  row->cfm_remote_opstate = NULL;
7811  }
7812 }
#define ovs_assert(CONDITION)
Definition: util.h:73
char * cfm_remote_opstate
Definition: vswitch-idl.h:731
char * string
Definition: ovsdb-data.h:33
union ovsdb_atom * keys
Definition: ovsdb-data.h:127
Definition: vswitch-idl.h:694
static bool inited
Definition: vswitch-idl.c:18
unsigned int n
Definition: ovsdb-data.h:126
static struct ovsrec_interface * ovsrec_interface_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:58
static void ovsrec_interface_parse_duplex ( struct ovsdb_idl_row row_,
const struct ovsdb_datum datum 
)
static
7816 {
7817  struct ovsrec_interface *row = ovsrec_interface_cast(row_);
7818 
7819  ovs_assert(inited);
7820  if (datum->n >= 1) {
7821  row->duplex = datum->keys[0].string;
7822  } else {
7823  row->duplex = NULL;
7824  }
7825 }
char * duplex
Definition: vswitch-idl.h:734
#define ovs_assert(CONDITION)
Definition: util.h:73
char * string
Definition: ovsdb-data.h:33
union ovsdb_atom * keys
Definition: ovsdb-data.h:127
Definition: vswitch-idl.h:694
static bool inited
Definition: vswitch-idl.c:18
unsigned int n
Definition: ovsdb-data.h:126
static struct ovsrec_interface * ovsrec_interface_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:58
static void ovsrec_interface_parse_error ( struct ovsdb_idl_row row_,
const struct ovsdb_datum datum 
)
static
7829 {
7830  struct ovsrec_interface *row = ovsrec_interface_cast(row_);
7831 
7832  ovs_assert(inited);
7833  if (datum->n >= 1) {
7834  row->error = datum->keys[0].string;
7835  } else {
7836  row->error = NULL;
7837  }
7838 }
#define ovs_assert(CONDITION)
Definition: util.h:73
char * string
Definition: ovsdb-data.h:33
union ovsdb_atom * keys
Definition: ovsdb-data.h:127
Definition: vswitch-idl.h:694
static bool inited
Definition: vswitch-idl.c:18
unsigned int n
Definition: ovsdb-data.h:126
char * error
Definition: vswitch-idl.h:737
static struct ovsrec_interface * ovsrec_interface_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:58
static void ovsrec_interface_parse_external_ids ( struct ovsdb_idl_row row_,
const struct ovsdb_datum datum 
)
static
7842 {
7843  struct ovsrec_interface *row = ovsrec_interface_cast(row_);
7844  size_t i;
7845 
7846  ovs_assert(inited);
7847  smap_init(&row->external_ids);
7848  for (i = 0; i < datum->n; i++) {
7849  smap_add(&row->external_ids,
7850  datum->keys[i].string,
7851  datum->values[i].string);
7852  }
7853 }
#define ovs_assert(CONDITION)
Definition: util.h:73
void smap_init(struct smap *smap)
Definition: smap.c:33
struct smap external_ids
Definition: vswitch-idl.h:740
char * string
Definition: ovsdb-data.h:33
struct smap_node * smap_add(struct smap *smap, const char *key, const char *value)
Definition: smap.c:50
union ovsdb_atom * keys
Definition: ovsdb-data.h:127
union ovsdb_atom * values
Definition: ovsdb-data.h:128
Definition: vswitch-idl.h:694
static bool inited
Definition: vswitch-idl.c:18
unsigned int n
Definition: ovsdb-data.h:126
static struct ovsrec_interface * ovsrec_interface_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:58
static void ovsrec_interface_parse_ifindex ( struct ovsdb_idl_row row_,
const struct ovsdb_datum datum 
)
static
7857 {
7858  struct ovsrec_interface *row = ovsrec_interface_cast(row_);
7859  size_t n = MIN(1, datum->n);
7860  size_t i;
7861 
7862  ovs_assert(inited);
7863  row->ifindex = NULL;
7864  row->n_ifindex = 0;
7865  for (i = 0; i < n; i++) {
7866  if (!row->n_ifindex) {
7867  row->ifindex = xmalloc(n * sizeof *row->ifindex);
7868  }
7869  row->ifindex[row->n_ifindex] = datum->keys[i].integer;
7870  row->n_ifindex++;
7871  }
7872 }
int64_t integer
Definition: ovsdb-data.h:30
#define ovs_assert(CONDITION)
Definition: util.h:73
int64_t * ifindex
Definition: vswitch-idl.h:743
union ovsdb_atom * keys
Definition: ovsdb-data.h:127
void * xmalloc(size_t size)
Definition: util.c:110
Definition: vswitch-idl.h:694
static bool inited
Definition: vswitch-idl.c:18
unsigned int n
Definition: ovsdb-data.h:126
#define MIN(_a, _b)
Definition: Util.h:68
static struct ovsrec_interface * ovsrec_interface_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:58
size_t n_ifindex
Definition: vswitch-idl.h:744
static void ovsrec_interface_parse_ingress_policing_burst ( struct ovsdb_idl_row row_,
const struct ovsdb_datum datum 
)
static
7876 {
7877  struct ovsrec_interface *row = ovsrec_interface_cast(row_);
7878 
7879  ovs_assert(inited);
7880  if (datum->n >= 1) {
7881  row->ingress_policing_burst = datum->keys[0].integer;
7882  } else {
7883  row->ingress_policing_burst = 0;
7884  }
7885 }
int64_t integer
Definition: ovsdb-data.h:30
#define ovs_assert(CONDITION)
Definition: util.h:73
union ovsdb_atom * keys
Definition: ovsdb-data.h:127
Definition: vswitch-idl.h:694
static bool inited
Definition: vswitch-idl.c:18
unsigned int n
Definition: ovsdb-data.h:126
static struct ovsrec_interface * ovsrec_interface_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:58
int64_t ingress_policing_burst
Definition: vswitch-idl.h:747
static void ovsrec_interface_parse_ingress_policing_rate ( struct ovsdb_idl_row row_,
const struct ovsdb_datum datum 
)
static
7889 {
7890  struct ovsrec_interface *row = ovsrec_interface_cast(row_);
7891 
7892  ovs_assert(inited);
7893  if (datum->n >= 1) {
7894  row->ingress_policing_rate = datum->keys[0].integer;
7895  } else {
7896  row->ingress_policing_rate = 0;
7897  }
7898 }
int64_t integer
Definition: ovsdb-data.h:30
#define ovs_assert(CONDITION)
Definition: util.h:73
union ovsdb_atom * keys
Definition: ovsdb-data.h:127
Definition: vswitch-idl.h:694
static bool inited
Definition: vswitch-idl.c:18
unsigned int n
Definition: ovsdb-data.h:126
int64_t ingress_policing_rate
Definition: vswitch-idl.h:750
static struct ovsrec_interface * ovsrec_interface_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:58
static void ovsrec_interface_parse_lacp_current ( struct ovsdb_idl_row row_,
const struct ovsdb_datum datum 
)
static
7902 {
7903  struct ovsrec_interface *row = ovsrec_interface_cast(row_);
7904  size_t n = MIN(1, datum->n);
7905  size_t i;
7906 
7907  ovs_assert(inited);
7908  row->lacp_current = NULL;
7909  row->n_lacp_current = 0;
7910  for (i = 0; i < n; i++) {
7911  if (!row->n_lacp_current) {
7912  row->lacp_current = xmalloc(n * sizeof_bool);
7913  }
7914  row->lacp_current[row->n_lacp_current] = datum->keys[i].boolean;
7915  row->n_lacp_current++;
7916  }
7917 }
size_t n_lacp_current
Definition: vswitch-idl.h:754
#define ovs_assert(CONDITION)
Definition: util.h:73
union ovsdb_atom * keys
Definition: ovsdb-data.h:127
void * xmalloc(size_t size)
Definition: util.c:110
Definition: vswitch-idl.h:694
bool boolean
Definition: ovsdb-data.h:32
static bool inited
Definition: vswitch-idl.c:18
unsigned int n
Definition: ovsdb-data.h:126
#define MIN(_a, _b)
Definition: Util.h:68
Definition: vswitch-idl.c:15
static struct ovsrec_interface * ovsrec_interface_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:58
bool * lacp_current
Definition: vswitch-idl.h:753
static void ovsrec_interface_parse_link_resets ( struct ovsdb_idl_row row_,
const struct ovsdb_datum datum 
)
static
7921 {
7922  struct ovsrec_interface *row = ovsrec_interface_cast(row_);
7923  size_t n = MIN(1, datum->n);
7924  size_t i;
7925 
7926  ovs_assert(inited);
7927  row->link_resets = NULL;
7928  row->n_link_resets = 0;
7929  for (i = 0; i < n; i++) {
7930  if (!row->n_link_resets) {
7931  row->link_resets = xmalloc(n * sizeof *row->link_resets);
7932  }
7933  row->link_resets[row->n_link_resets] = datum->keys[i].integer;
7934  row->n_link_resets++;
7935  }
7936 }
int64_t integer
Definition: ovsdb-data.h:30
int64_t * link_resets
Definition: vswitch-idl.h:757
#define ovs_assert(CONDITION)
Definition: util.h:73
size_t n_link_resets
Definition: vswitch-idl.h:758
union ovsdb_atom * keys
Definition: ovsdb-data.h:127
void * xmalloc(size_t size)
Definition: util.c:110
Definition: vswitch-idl.h:694
static bool inited
Definition: vswitch-idl.c:18
unsigned int n
Definition: ovsdb-data.h:126
#define MIN(_a, _b)
Definition: Util.h:68
static struct ovsrec_interface * ovsrec_interface_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:58
static void ovsrec_interface_parse_link_speed ( struct ovsdb_idl_row row_,
const struct ovsdb_datum datum 
)
static
7940 {
7941  struct ovsrec_interface *row = ovsrec_interface_cast(row_);
7942  size_t n = MIN(1, datum->n);
7943  size_t i;
7944 
7945  ovs_assert(inited);
7946  row->link_speed = NULL;
7947  row->n_link_speed = 0;
7948  for (i = 0; i < n; i++) {
7949  if (!row->n_link_speed) {
7950  row->link_speed = xmalloc(n * sizeof *row->link_speed);
7951  }
7952  row->link_speed[row->n_link_speed] = datum->keys[i].integer;
7953  row->n_link_speed++;
7954  }
7955 }
int64_t integer
Definition: ovsdb-data.h:30
#define ovs_assert(CONDITION)
Definition: util.h:73
union ovsdb_atom * keys
Definition: ovsdb-data.h:127
void * xmalloc(size_t size)
Definition: util.c:110
Definition: vswitch-idl.h:694
int64_t * link_speed
Definition: vswitch-idl.h:761
static bool inited
Definition: vswitch-idl.c:18
size_t n_link_speed
Definition: vswitch-idl.h:762
unsigned int n
Definition: ovsdb-data.h:126
#define MIN(_a, _b)
Definition: Util.h:68
static struct ovsrec_interface * ovsrec_interface_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:58
static void ovsrec_interface_parse_link_state ( struct ovsdb_idl_row row_,
const struct ovsdb_datum datum 
)
static
7959 {
7960  struct ovsrec_interface *row = ovsrec_interface_cast(row_);
7961 
7962  ovs_assert(inited);
7963  if (datum->n >= 1) {
7964  row->link_state = datum->keys[0].string;
7965  } else {
7966  row->link_state = NULL;
7967  }
7968 }
#define ovs_assert(CONDITION)
Definition: util.h:73
char * string
Definition: ovsdb-data.h:33
union ovsdb_atom * keys
Definition: ovsdb-data.h:127
Definition: vswitch-idl.h:694
static bool inited
Definition: vswitch-idl.c:18
unsigned int n
Definition: ovsdb-data.h:126
char * link_state
Definition: vswitch-idl.h:765
static struct ovsrec_interface * ovsrec_interface_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:58
static void ovsrec_interface_parse_lldp ( struct ovsdb_idl_row row_,
const struct ovsdb_datum datum 
)
static
7972 {
7973  struct ovsrec_interface *row = ovsrec_interface_cast(row_);
7974  size_t i;
7975 
7976  ovs_assert(inited);
7977  smap_init(&row->lldp);
7978  for (i = 0; i < datum->n; i++) {
7979  smap_add(&row->lldp,
7980  datum->keys[i].string,
7981  datum->values[i].string);
7982  }
7983 }
#define ovs_assert(CONDITION)
Definition: util.h:73
void smap_init(struct smap *smap)
Definition: smap.c:33
struct smap lldp
Definition: vswitch-idl.h:768
char * string
Definition: ovsdb-data.h:33
struct smap_node * smap_add(struct smap *smap, const char *key, const char *value)
Definition: smap.c:50
union ovsdb_atom * keys
Definition: ovsdb-data.h:127
union ovsdb_atom * values
Definition: ovsdb-data.h:128
Definition: vswitch-idl.h:694
static bool inited
Definition: vswitch-idl.c:18
unsigned int n
Definition: ovsdb-data.h:126
static struct ovsrec_interface * ovsrec_interface_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:58
static void ovsrec_interface_parse_mac ( struct ovsdb_idl_row row_,
const struct ovsdb_datum datum 
)
static
7987 {
7988  struct ovsrec_interface *row = ovsrec_interface_cast(row_);
7989 
7990  ovs_assert(inited);
7991  if (datum->n >= 1) {
7992  row->mac = datum->keys[0].string;
7993  } else {
7994  row->mac = NULL;
7995  }
7996 }
#define ovs_assert(CONDITION)
Definition: util.h:73
char * mac
Definition: vswitch-idl.h:771
char * string
Definition: ovsdb-data.h:33
union ovsdb_atom * keys
Definition: ovsdb-data.h:127
Definition: vswitch-idl.h:694
static bool inited
Definition: vswitch-idl.c:18
unsigned int n
Definition: ovsdb-data.h:126
static struct ovsrec_interface * ovsrec_interface_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:58
static void ovsrec_interface_parse_mac_in_use ( struct ovsdb_idl_row row_,
const struct ovsdb_datum datum 
)
static
8000 {
8001  struct ovsrec_interface *row = ovsrec_interface_cast(row_);
8002 
8003  ovs_assert(inited);
8004  if (datum->n >= 1) {
8005  row->mac_in_use = datum->keys[0].string;
8006  } else {
8007  row->mac_in_use = NULL;
8008  }
8009 }
#define ovs_assert(CONDITION)
Definition: util.h:73
char * string
Definition: ovsdb-data.h:33
union ovsdb_atom * keys
Definition: ovsdb-data.h:127
Definition: vswitch-idl.h:694
static bool inited
Definition: vswitch-idl.c:18
unsigned int n
Definition: ovsdb-data.h:126
static struct ovsrec_interface * ovsrec_interface_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:58
char * mac_in_use
Definition: vswitch-idl.h:774
static void ovsrec_interface_parse_mtu ( struct ovsdb_idl_row row_,
const struct ovsdb_datum datum 
)
static
8013 {
8014  struct ovsrec_interface *row = ovsrec_interface_cast(row_);
8015  size_t n = MIN(1, datum->n);
8016  size_t i;
8017 
8018  ovs_assert(inited);
8019  row->mtu = NULL;
8020  row->n_mtu = 0;
8021  for (i = 0; i < n; i++) {
8022  if (!row->n_mtu) {
8023  row->mtu = xmalloc(n * sizeof *row->mtu);
8024  }
8025  row->mtu[row->n_mtu] = datum->keys[i].integer;
8026  row->n_mtu++;
8027  }
8028 }
int64_t integer
Definition: ovsdb-data.h:30
#define ovs_assert(CONDITION)
Definition: util.h:73
union ovsdb_atom * keys
Definition: ovsdb-data.h:127
void * xmalloc(size_t size)
Definition: util.c:110
size_t n_mtu
Definition: vswitch-idl.h:778
Definition: vswitch-idl.h:694
static bool inited
Definition: vswitch-idl.c:18
unsigned int n
Definition: ovsdb-data.h:126
#define MIN(_a, _b)
Definition: Util.h:68
int64_t * mtu
Definition: vswitch-idl.h:777
static struct ovsrec_interface * ovsrec_interface_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:58
static void ovsrec_interface_parse_name ( struct ovsdb_idl_row row_,
const struct ovsdb_datum datum 
)
static
8032 {
8033  struct ovsrec_interface *row = ovsrec_interface_cast(row_);
8034 
8035  ovs_assert(inited);
8036  if (datum->n >= 1) {
8037  row->name = datum->keys[0].string;
8038  } else {
8039  row->name = "";
8040  }
8041 }
#define ovs_assert(CONDITION)
Definition: util.h:73
char * string
Definition: ovsdb-data.h:33
union ovsdb_atom * keys
Definition: ovsdb-data.h:127
Definition: vswitch-idl.h:694
static bool inited
Definition: vswitch-idl.c:18
char * name
Definition: vswitch-idl.h:781
unsigned int n
Definition: ovsdb-data.h:126
static struct ovsrec_interface * ovsrec_interface_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:58
static void ovsrec_interface_parse_ofport ( struct ovsdb_idl_row row_,
const struct ovsdb_datum datum 
)
static
8045 {
8046  struct ovsrec_interface *row = ovsrec_interface_cast(row_);
8047  size_t n = MIN(1, datum->n);
8048  size_t i;
8049 
8050  ovs_assert(inited);
8051  row->ofport = NULL;
8052  row->n_ofport = 0;
8053  for (i = 0; i < n; i++) {
8054  if (!row->n_ofport) {
8055  row->ofport = xmalloc(n * sizeof *row->ofport);
8056  }
8057  row->ofport[row->n_ofport] = datum->keys[i].integer;
8058  row->n_ofport++;
8059  }
8060 }
int64_t integer
Definition: ovsdb-data.h:30
#define ovs_assert(CONDITION)
Definition: util.h:73
union ovsdb_atom * keys
Definition: ovsdb-data.h:127
void * xmalloc(size_t size)
Definition: util.c:110
Definition: vswitch-idl.h:694
static bool inited
Definition: vswitch-idl.c:18
unsigned int n
Definition: ovsdb-data.h:126
size_t n_ofport
Definition: vswitch-idl.h:785
#define MIN(_a, _b)
Definition: Util.h:68
static struct ovsrec_interface * ovsrec_interface_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:58
int64_t * ofport
Definition: vswitch-idl.h:784
static void ovsrec_interface_parse_ofport_request ( struct ovsdb_idl_row row_,
const struct ovsdb_datum datum 
)
static
8064 {
8065  struct ovsrec_interface *row = ovsrec_interface_cast(row_);
8066  size_t n = MIN(1, datum->n);
8067  size_t i;
8068 
8069  ovs_assert(inited);
8070  row->ofport_request = NULL;
8071  row->n_ofport_request = 0;
8072  for (i = 0; i < n; i++) {
8073  if (!row->n_ofport_request) {
8074  row->ofport_request = xmalloc(n * sizeof *row->ofport_request);
8075  }
8076  row->ofport_request[row->n_ofport_request] = datum->keys[i].integer;
8077  row->n_ofport_request++;
8078  }
8079 }
int64_t integer
Definition: ovsdb-data.h:30
#define ovs_assert(CONDITION)
Definition: util.h:73
int64_t * ofport_request
Definition: vswitch-idl.h:788
union ovsdb_atom * keys
Definition: ovsdb-data.h:127
void * xmalloc(size_t size)
Definition: util.c:110
Definition: vswitch-idl.h:694
static bool inited
Definition: vswitch-idl.c:18
unsigned int n
Definition: ovsdb-data.h:126
#define MIN(_a, _b)
Definition: Util.h:68
size_t n_ofport_request
Definition: vswitch-idl.h:789
static struct ovsrec_interface * ovsrec_interface_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:58
static void ovsrec_interface_parse_options ( struct ovsdb_idl_row row_,
const struct ovsdb_datum datum 
)
static
8083 {
8084  struct ovsrec_interface *row = ovsrec_interface_cast(row_);
8085  size_t i;
8086 
8087  ovs_assert(inited);
8088  smap_init(&row->options);
8089  for (i = 0; i < datum->n; i++) {
8090  smap_add(&row->options,
8091  datum->keys[i].string,
8092  datum->values[i].string);
8093  }
8094 }
#define ovs_assert(CONDITION)
Definition: util.h:73
void smap_init(struct smap *smap)
Definition: smap.c:33
char * string
Definition: ovsdb-data.h:33
struct smap_node * smap_add(struct smap *smap, const char *key, const char *value)
Definition: smap.c:50
union ovsdb_atom * keys
Definition: ovsdb-data.h:127
union ovsdb_atom * values
Definition: ovsdb-data.h:128
Definition: vswitch-idl.h:694
static bool inited
Definition: vswitch-idl.c:18
unsigned int n
Definition: ovsdb-data.h:126
struct smap options
Definition: vswitch-idl.h:792
static struct ovsrec_interface * ovsrec_interface_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:58
static void ovsrec_interface_parse_other_config ( struct ovsdb_idl_row row_,
const struct ovsdb_datum datum 
)
static
8098 {
8099  struct ovsrec_interface *row = ovsrec_interface_cast(row_);
8100  size_t i;
8101 
8102  ovs_assert(inited);
8103  smap_init(&row->other_config);
8104  for (i = 0; i < datum->n; i++) {
8105  smap_add(&row->other_config,
8106  datum->keys[i].string,
8107  datum->values[i].string);
8108  }
8109 }
#define ovs_assert(CONDITION)
Definition: util.h:73
void smap_init(struct smap *smap)
Definition: smap.c:33
char * string
Definition: ovsdb-data.h:33
struct smap_node * smap_add(struct smap *smap, const char *key, const char *value)
Definition: smap.c:50
union ovsdb_atom * keys
Definition: ovsdb-data.h:127
union ovsdb_atom * values
Definition: ovsdb-data.h:128
Definition: vswitch-idl.h:694
static bool inited
Definition: vswitch-idl.c:18
unsigned int n
Definition: ovsdb-data.h:126
struct smap other_config
Definition: vswitch-idl.h:795
static struct ovsrec_interface * ovsrec_interface_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:58
static void ovsrec_interface_parse_statistics ( struct ovsdb_idl_row row_,
const struct ovsdb_datum datum 
)
static
8113 {
8114  struct ovsrec_interface *row = ovsrec_interface_cast(row_);
8115  size_t i;
8116 
8117  ovs_assert(inited);
8118  row->key_statistics = NULL;
8119  row->value_statistics = NULL;
8120  row->n_statistics = 0;
8121  for (i = 0; i < datum->n; i++) {
8122  if (!row->n_statistics) {
8123  row->key_statistics = xmalloc(datum->n * sizeof *row->key_statistics);
8124  row->value_statistics = xmalloc(datum->n * sizeof *row->value_statistics);
8125  }
8126  row->key_statistics[row->n_statistics] = datum->keys[i].string;
8127  row->value_statistics[row->n_statistics] = datum->values[i].integer;
8128  row->n_statistics++;
8129  }
8130 }
int64_t integer
Definition: ovsdb-data.h:30
char ** key_statistics
Definition: vswitch-idl.h:798
#define ovs_assert(CONDITION)
Definition: util.h:73
char * string
Definition: ovsdb-data.h:33
union ovsdb_atom * keys
Definition: ovsdb-data.h:127
void * xmalloc(size_t size)
Definition: util.c:110
union ovsdb_atom * values
Definition: ovsdb-data.h:128
Definition: vswitch-idl.h:694
static bool inited
Definition: vswitch-idl.c:18
unsigned int n
Definition: ovsdb-data.h:126
size_t n_statistics
Definition: vswitch-idl.h:800
static struct ovsrec_interface * ovsrec_interface_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:58
int64_t * value_statistics
Definition: vswitch-idl.h:799
static void ovsrec_interface_parse_status ( struct ovsdb_idl_row row_,
const struct ovsdb_datum datum 
)
static
8134 {
8135  struct ovsrec_interface *row = ovsrec_interface_cast(row_);
8136  size_t i;
8137 
8138  ovs_assert(inited);
8139  smap_init(&row->status);
8140  for (i = 0; i < datum->n; i++) {
8141  smap_add(&row->status,
8142  datum->keys[i].string,
8143  datum->values[i].string);
8144  }
8145 }
#define ovs_assert(CONDITION)
Definition: util.h:73
void smap_init(struct smap *smap)
Definition: smap.c:33
struct smap status
Definition: vswitch-idl.h:803
char * string
Definition: ovsdb-data.h:33
struct smap_node * smap_add(struct smap *smap, const char *key, const char *value)
Definition: smap.c:50
union ovsdb_atom * keys
Definition: ovsdb-data.h:127
union ovsdb_atom * values
Definition: ovsdb-data.h:128
Definition: vswitch-idl.h:694
static bool inited
Definition: vswitch-idl.c:18
unsigned int n
Definition: ovsdb-data.h:126
static struct ovsrec_interface * ovsrec_interface_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:58
static void ovsrec_interface_parse_type ( struct ovsdb_idl_row row_,
const struct ovsdb_datum datum 
)
static
8149 {
8150  struct ovsrec_interface *row = ovsrec_interface_cast(row_);
8151 
8152  ovs_assert(inited);
8153  if (datum->n >= 1) {
8154  row->type = datum->keys[0].string;
8155  } else {
8156  row->type = "";
8157  }
8158 }
#define ovs_assert(CONDITION)
Definition: util.h:73
char * string
Definition: ovsdb-data.h:33
union ovsdb_atom * keys
Definition: ovsdb-data.h:127
Definition: vswitch-idl.h:694
static bool inited
Definition: vswitch-idl.c:18
char * type
Definition: vswitch-idl.h:806
unsigned int n
Definition: ovsdb-data.h:126
static struct ovsrec_interface * ovsrec_interface_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:58
void ovsrec_interface_set_admin_state ( const struct ovsrec_interface row,
const char *  admin_state 
)
10410 {
10411  struct ovsdb_datum datum;
10412  union ovsdb_atom key;
10413 
10414  ovs_assert(inited);
10415  if (admin_state) {
10416  datum.n = 1;
10417  datum.keys = &key;
10418  key.string = CONST_CAST(char *, admin_state);
10419  } else {
10420  datum.n = 0;
10421  datum.keys = NULL;
10422  }
10423  datum.values = NULL;
10425 }
Definition: ovsdb-data.h:125
Definition: vswitch-idl.h:810
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: ovsdb-data.h:29
static bool inited
Definition: vswitch-idl.c:18
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:695
struct ovsdb_idl_column ovsrec_interface_columns[OVSREC_INTERFACE_N_COLUMNS]
Definition: vswitch-idl.c:11260
#define CONST_CAST(TYPE, POINTER)
Definition: util.h:88
static struct aes128 key
Definition: uuid.c:34
void ovsdb_idl_txn_write_clone(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column, const struct ovsdb_datum *datum)
Definition: ovsdb-idl.c:2131
void ovsrec_interface_set_bfd ( const struct ovsrec_interface row,
const struct smap bfd 
)
10433 {
10434  struct ovsdb_datum datum;
10435 
10436  ovs_assert(inited);
10437  if (bfd) {
10438  struct smap_node *node;
10439  size_t i;
10440 
10441  datum.n = smap_count(bfd);
10442  datum.keys = xmalloc(datum.n * sizeof *datum.keys);
10443  datum.values = xmalloc(datum.n * sizeof *datum.values);
10444 
10445  i = 0;
10446  SMAP_FOR_EACH (node, bfd) {
10447  datum.keys[i].string = xstrdup(node->key);
10448  datum.values[i].string = xstrdup(node->value);
10449  i++;
10450  }
10452  } else {
10453  ovsdb_datum_init_empty(&datum);
10454  }
10457  &datum);
10458 }
char * value
Definition: smap.h:31
Definition: ovsdb-data.h:125
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: ovsdb-types.h:33
size_t ovsdb_datum_sort_unique(struct ovsdb_datum *datum, enum ovsdb_atomic_type key_type, enum ovsdb_atomic_type value_type)
Definition: ovsdb-data.c:1089
#define SMAP_FOR_EACH(SMAP_NODE, SMAP)
Definition: smap.h:36
void * xmalloc(size_t size)
Definition: util.c:110
char * xstrdup(const char *s)
Definition: util.c:149
static bool inited
Definition: vswitch-idl.c:18
struct hmap_node node
Definition: smap.h:29
Definition: smap.h:28
Definition: vswitch-idl.h:811
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:695
size_t smap_count(const struct smap *smap)
Definition: smap.c:238
struct ovsdb_idl_column ovsrec_interface_columns[OVSREC_INTERFACE_N_COLUMNS]
Definition: vswitch-idl.c:11260
void ovsdb_datum_init_empty(struct ovsdb_datum *datum)
Definition: ovsdb-data.c:835
void ovsdb_idl_txn_write(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column, struct ovsdb_datum *datum)
Definition: ovsdb-idl.c:2123
char * key
Definition: smap.h:30
void ovsrec_interface_set_bfd_status ( const struct ovsrec_interface row,
const struct smap bfd_status 
)
10467 {
10468  struct ovsdb_datum datum;
10469 
10470  ovs_assert(inited);
10471  if (bfd_status) {
10472  struct smap_node *node;
10473  size_t i;
10474 
10475  datum.n = smap_count(bfd_status);
10476  datum.keys = xmalloc(datum.n * sizeof *datum.keys);
10477  datum.values = xmalloc(datum.n * sizeof *datum.values);
10478 
10479  i = 0;
10480  SMAP_FOR_EACH (node, bfd_status) {
10481  datum.keys[i].string = xstrdup(node->key);
10482  datum.values[i].string = xstrdup(node->value);
10483  i++;
10484  }
10486  } else {
10487  ovsdb_datum_init_empty(&datum);
10488  }
10491  &datum);
10492 }
char * value
Definition: smap.h:31
Definition: ovsdb-data.h:125
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: ovsdb-types.h:33
size_t ovsdb_datum_sort_unique(struct ovsdb_datum *datum, enum ovsdb_atomic_type key_type, enum ovsdb_atomic_type value_type)
Definition: ovsdb-data.c:1089
#define SMAP_FOR_EACH(SMAP_NODE, SMAP)
Definition: smap.h:36
void * xmalloc(size_t size)
Definition: util.c:110
char * xstrdup(const char *s)
Definition: util.c:149
static bool inited
Definition: vswitch-idl.c:18
struct hmap_node node
Definition: smap.h:29
Definition: vswitch-idl.h:812
Definition: smap.h:28
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:695
size_t smap_count(const struct smap *smap)
Definition: smap.c:238
struct ovsdb_idl_column ovsrec_interface_columns[OVSREC_INTERFACE_N_COLUMNS]
Definition: vswitch-idl.c:11260
void ovsdb_datum_init_empty(struct ovsdb_datum *datum)
Definition: ovsdb-data.c:835
void ovsdb_idl_txn_write(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column, struct ovsdb_datum *datum)
Definition: ovsdb-idl.c:2123
char * key
Definition: smap.h:30
void ovsrec_interface_set_cfm_fault ( const struct ovsrec_interface row,
const bool cfm_fault,
size_t  n_cfm_fault 
)
10504 {
10505  struct ovsdb_datum datum;
10506  union ovsdb_atom key;
10507 
10508  ovs_assert(inited);
10509  if (n_cfm_fault) {
10510  datum.n = 1;
10511  datum.keys = &key;
10512  key.boolean = *cfm_fault;
10513  } else {
10514  datum.n = 0;
10515  datum.keys = NULL;
10516  }
10517  datum.values = NULL;
10519 }
Definition: ovsdb-data.h:125
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: ovsdb-data.h:29
static bool inited
Definition: vswitch-idl.c:18
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:695
struct ovsdb_idl_column ovsrec_interface_columns[OVSREC_INTERFACE_N_COLUMNS]
Definition: vswitch-idl.c:11260
Definition: vswitch-idl.h:813
static struct aes128 key
Definition: uuid.c:34
void ovsdb_idl_txn_write_clone(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column, const struct ovsdb_datum *datum)
Definition: ovsdb-idl.c:2131
void ovsrec_interface_set_cfm_fault_status ( const struct ovsrec_interface row,
const char **  cfm_fault_status,
size_t  n_cfm_fault_status 
)
10527 {
10528  struct ovsdb_datum datum;
10529  size_t i;
10530 
10531  ovs_assert(inited);
10532  datum.n = n_cfm_fault_status;
10533  datum.keys = n_cfm_fault_status ? xmalloc(n_cfm_fault_status * sizeof *datum.keys) : NULL;
10534  datum.values = NULL;
10535  for (i = 0; i < n_cfm_fault_status; i++) {
10536  datum.keys[i].string = xstrdup(cfm_fault_status[i]);
10537  }
10540 }
Definition: ovsdb-data.h:125
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: vswitch-idl.h:814
Definition: ovsdb-types.h:33
size_t ovsdb_datum_sort_unique(struct ovsdb_datum *datum, enum ovsdb_atomic_type key_type, enum ovsdb_atomic_type value_type)
Definition: ovsdb-data.c:1089
void * xmalloc(size_t size)
Definition: util.c:110
char * xstrdup(const char *s)
Definition: util.c:149
static bool inited
Definition: vswitch-idl.c:18
Definition: ovsdb-types.h:29
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:695
struct ovsdb_idl_column ovsrec_interface_columns[OVSREC_INTERFACE_N_COLUMNS]
Definition: vswitch-idl.c:11260
void ovsdb_idl_txn_write(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column, struct ovsdb_datum *datum)
Definition: ovsdb-idl.c:2123
void ovsrec_interface_set_cfm_flap_count ( const struct ovsrec_interface row,
const int64_t cfm_flap_count,
size_t  n_cfm_flap_count 
)
10551 {
10552  struct ovsdb_datum datum;
10553  union ovsdb_atom key;
10554 
10555  ovs_assert(inited);
10556  if (n_cfm_flap_count) {
10557  datum.n = 1;
10558  datum.keys = &key;
10559  key.integer = *cfm_flap_count;
10560  } else {
10561  datum.n = 0;
10562  datum.keys = NULL;
10563  }
10564  datum.values = NULL;
10566 }
Definition: ovsdb-data.h:125
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: ovsdb-data.h:29
Definition: vswitch-idl.h:815
static bool inited
Definition: vswitch-idl.c:18
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:695
struct ovsdb_idl_column ovsrec_interface_columns[OVSREC_INTERFACE_N_COLUMNS]
Definition: vswitch-idl.c:11260
static struct aes128 key
Definition: uuid.c:34
void ovsdb_idl_txn_write_clone(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column, const struct ovsdb_datum *datum)
Definition: ovsdb-idl.c:2131
void ovsrec_interface_set_cfm_health ( const struct ovsrec_interface row,
const int64_t cfm_health,
size_t  n_cfm_health 
)
10579 {
10580  struct ovsdb_datum datum;
10581  union ovsdb_atom key;
10582 
10583  ovs_assert(inited);
10584  if (n_cfm_health) {
10585  datum.n = 1;
10586  datum.keys = &key;
10587  key.integer = *cfm_health;
10588  } else {
10589  datum.n = 0;
10590  datum.keys = NULL;
10591  }
10592  datum.values = NULL;
10594 }
Definition: ovsdb-data.h:125
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: ovsdb-data.h:29
static bool inited
Definition: vswitch-idl.c:18
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:695
struct ovsdb_idl_column ovsrec_interface_columns[OVSREC_INTERFACE_N_COLUMNS]
Definition: vswitch-idl.c:11260
static struct aes128 key
Definition: uuid.c:34
Definition: vswitch-idl.h:816
void ovsdb_idl_txn_write_clone(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column, const struct ovsdb_datum *datum)
Definition: ovsdb-idl.c:2131
void ovsrec_interface_set_cfm_mpid ( const struct ovsrec_interface row,
const int64_t cfm_mpid,
size_t  n_cfm_mpid 
)
10605 {
10606  struct ovsdb_datum datum;
10607  union ovsdb_atom key;
10608 
10609  ovs_assert(inited);
10610  if (n_cfm_mpid) {
10611  datum.n = 1;
10612  datum.keys = &key;
10613  key.integer = *cfm_mpid;
10614  } else {
10615  datum.n = 0;
10616  datum.keys = NULL;
10617  }
10618  datum.values = NULL;
10620 }
Definition: ovsdb-data.h:125
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: ovsdb-data.h:29
static bool inited
Definition: vswitch-idl.c:18
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:695
struct ovsdb_idl_column ovsrec_interface_columns[OVSREC_INTERFACE_N_COLUMNS]
Definition: vswitch-idl.c:11260
Definition: vswitch-idl.h:817
static struct aes128 key
Definition: uuid.c:34
void ovsdb_idl_txn_write_clone(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column, const struct ovsdb_datum *datum)
Definition: ovsdb-idl.c:2131
void ovsrec_interface_set_cfm_remote_mpids ( const struct ovsrec_interface row,
const int64_t cfm_remote_mpids,
size_t  n_cfm_remote_mpids 
)
10628 {
10629  struct ovsdb_datum datum;
10630  size_t i;
10631 
10632  ovs_assert(inited);
10633  datum.n = n_cfm_remote_mpids;
10634  datum.keys = n_cfm_remote_mpids ? xmalloc(n_cfm_remote_mpids * sizeof *datum.keys) : NULL;
10635  datum.values = NULL;
10636  for (i = 0; i < n_cfm_remote_mpids; i++) {
10637  datum.keys[i].integer = cfm_remote_mpids[i];
10638  }
10641 }
Definition: ovsdb-data.h:125
#define ovs_assert(CONDITION)
Definition: util.h:73
size_t ovsdb_datum_sort_unique(struct ovsdb_datum *datum, enum ovsdb_atomic_type key_type, enum ovsdb_atomic_type value_type)
Definition: ovsdb-data.c:1089
Definition: ovsdb-types.h:30
Definition: vswitch-idl.h:818
void * xmalloc(size_t size)
Definition: util.c:110
static bool inited
Definition: vswitch-idl.c:18
Definition: ovsdb-types.h:29
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:695
struct ovsdb_idl_column ovsrec_interface_columns[OVSREC_INTERFACE_N_COLUMNS]
Definition: vswitch-idl.c:11260
void ovsdb_idl_txn_write(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column, struct ovsdb_datum *datum)
Definition: ovsdb-idl.c:2123
void ovsrec_interface_set_cfm_remote_opstate ( const struct ovsrec_interface row,
const char *  cfm_remote_opstate 
)
10654 {
10655  struct ovsdb_datum datum;
10656  union ovsdb_atom key;
10657 
10658  ovs_assert(inited);
10659  if (cfm_remote_opstate) {
10660  datum.n = 1;
10661  datum.keys = &key;
10662  key.string = CONST_CAST(char *, cfm_remote_opstate);
10663  } else {
10664  datum.n = 0;
10665  datum.keys = NULL;
10666  }
10667  datum.values = NULL;
10669 }
Definition: ovsdb-data.h:125
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: ovsdb-data.h:29
static bool inited
Definition: vswitch-idl.c:18
Definition: vswitch-idl.h:819
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:695
struct ovsdb_idl_column ovsrec_interface_columns[OVSREC_INTERFACE_N_COLUMNS]
Definition: vswitch-idl.c:11260
#define CONST_CAST(TYPE, POINTER)
Definition: util.h:88
static struct aes128 key
Definition: uuid.c:34
void ovsdb_idl_txn_write_clone(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column, const struct ovsdb_datum *datum)
Definition: ovsdb-idl.c:2131
void ovsrec_interface_set_duplex ( const struct ovsrec_interface row,
const char *  duplex 
)
10682 {
10683  struct ovsdb_datum datum;
10684  union ovsdb_atom key;
10685 
10686  ovs_assert(inited);
10687  if (duplex) {
10688  datum.n = 1;
10689  datum.keys = &key;
10690  key.string = CONST_CAST(char *, duplex);
10691  } else {
10692  datum.n = 0;
10693  datum.keys = NULL;
10694  }
10695  datum.values = NULL;
10697 }
Definition: ovsdb-data.h:125
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: vswitch-idl.h:820
Definition: ovsdb-data.h:29
static bool inited
Definition: vswitch-idl.c:18
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:695
struct ovsdb_idl_column ovsrec_interface_columns[OVSREC_INTERFACE_N_COLUMNS]
Definition: vswitch-idl.c:11260
#define CONST_CAST(TYPE, POINTER)
Definition: util.h:88
static struct aes128 key
Definition: uuid.c:34
void ovsdb_idl_txn_write_clone(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column, const struct ovsdb_datum *datum)
Definition: ovsdb-idl.c:2131
void ovsrec_interface_set_error ( const struct ovsrec_interface row,
const char *  error 
)
10708 {
10709  struct ovsdb_datum datum;
10710  union ovsdb_atom key;
10711 
10712  ovs_assert(inited);
10713  if (error) {
10714  datum.n = 1;
10715  datum.keys = &key;
10716  key.string = CONST_CAST(char *, error);
10717  } else {
10718  datum.n = 0;
10719  datum.keys = NULL;
10720  }
10721  datum.values = NULL;
10723 }
Definition: ovsdb-data.h:125
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: ovsdb-data.h:29
static bool inited
Definition: vswitch-idl.c:18
return error
Definition: netdev.c:248
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:695
struct ovsdb_idl_column ovsrec_interface_columns[OVSREC_INTERFACE_N_COLUMNS]
Definition: vswitch-idl.c:11260
Definition: vswitch-idl.h:821
#define CONST_CAST(TYPE, POINTER)
Definition: util.h:88
static struct aes128 key
Definition: uuid.c:34
void ovsdb_idl_txn_write_clone(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column, const struct ovsdb_datum *datum)
Definition: ovsdb-idl.c:2131
void ovsrec_interface_set_external_ids ( const struct ovsrec_interface row,
const struct smap external_ids 
)
10731 {
10732  struct ovsdb_datum datum;
10733 
10734  ovs_assert(inited);
10735  if (external_ids) {
10736  struct smap_node *node;
10737  size_t i;
10738 
10739  datum.n = smap_count(external_ids);
10740  datum.keys = xmalloc(datum.n * sizeof *datum.keys);
10741  datum.values = xmalloc(datum.n * sizeof *datum.values);
10742 
10743  i = 0;
10744  SMAP_FOR_EACH (node, external_ids) {
10745  datum.keys[i].string = xstrdup(node->key);
10746  datum.values[i].string = xstrdup(node->value);
10747  i++;
10748  }
10750  } else {
10751  ovsdb_datum_init_empty(&datum);
10752  }
10755  &datum);
10756 }
char * value
Definition: smap.h:31
Definition: ovsdb-data.h:125
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: ovsdb-types.h:33
size_t ovsdb_datum_sort_unique(struct ovsdb_datum *datum, enum ovsdb_atomic_type key_type, enum ovsdb_atomic_type value_type)
Definition: ovsdb-data.c:1089
#define SMAP_FOR_EACH(SMAP_NODE, SMAP)
Definition: smap.h:36
void * xmalloc(size_t size)
Definition: util.c:110
char * xstrdup(const char *s)
Definition: util.c:149
static bool inited
Definition: vswitch-idl.c:18
struct hmap_node node
Definition: smap.h:29
Definition: vswitch-idl.h:822
Definition: smap.h:28
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:695
size_t smap_count(const struct smap *smap)
Definition: smap.c:238
struct ovsdb_idl_column ovsrec_interface_columns[OVSREC_INTERFACE_N_COLUMNS]
Definition: vswitch-idl.c:11260
void ovsdb_datum_init_empty(struct ovsdb_datum *datum)
Definition: ovsdb-data.c:835
void ovsdb_idl_txn_write(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column, struct ovsdb_datum *datum)
Definition: ovsdb-idl.c:2123
char * key
Definition: smap.h:30
void ovsrec_interface_set_ifindex ( const struct ovsrec_interface row,
const int64_t ifindex,
size_t  n_ifindex 
)
10770 {
10771  struct ovsdb_datum datum;
10772  union ovsdb_atom key;
10773 
10774  ovs_assert(inited);
10775  if (n_ifindex) {
10776  datum.n = 1;
10777  datum.keys = &key;
10778  key.integer = *ifindex;
10779  } else {
10780  datum.n = 0;
10781  datum.keys = NULL;
10782  }
10783  datum.values = NULL;
10785 }
Definition: ovsdb-data.h:125
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: ovsdb-data.h:29
Definition: vswitch-idl.h:823
static bool inited
Definition: vswitch-idl.c:18
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:695
struct ovsdb_idl_column ovsrec_interface_columns[OVSREC_INTERFACE_N_COLUMNS]
Definition: vswitch-idl.c:11260
static struct aes128 key
Definition: uuid.c:34
void ovsdb_idl_txn_write_clone(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column, const struct ovsdb_datum *datum)
Definition: ovsdb-idl.c:2131
void ovsrec_interface_set_ingress_policing_burst ( const struct ovsrec_interface row,
int64_t  ingress_policing_burst 
)
10795 {
10796  struct ovsdb_datum datum;
10797  union ovsdb_atom key;
10798 
10799  ovs_assert(inited);
10800  datum.n = 1;
10801  datum.keys = &key;
10802  key.integer = ingress_policing_burst;
10803  datum.values = NULL;
10805 }
Definition: ovsdb-data.h:125
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: ovsdb-data.h:29
static bool inited
Definition: vswitch-idl.c:18
Definition: vswitch-idl.h:824
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:695
struct ovsdb_idl_column ovsrec_interface_columns[OVSREC_INTERFACE_N_COLUMNS]
Definition: vswitch-idl.c:11260
static struct aes128 key
Definition: uuid.c:34
void ovsdb_idl_txn_write_clone(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column, const struct ovsdb_datum *datum)
Definition: ovsdb-idl.c:2131
void ovsrec_interface_set_ingress_policing_rate ( const struct ovsrec_interface row,
int64_t  ingress_policing_rate 
)
10815 {
10816  struct ovsdb_datum datum;
10817  union ovsdb_atom key;
10818 
10819  ovs_assert(inited);
10820  datum.n = 1;
10821  datum.keys = &key;
10822  key.integer = ingress_policing_rate;
10823  datum.values = NULL;
10825 }
Definition: ovsdb-data.h:125
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: ovsdb-data.h:29
static bool inited
Definition: vswitch-idl.c:18
Definition: vswitch-idl.h:825
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:695
struct ovsdb_idl_column ovsrec_interface_columns[OVSREC_INTERFACE_N_COLUMNS]
Definition: vswitch-idl.c:11260
static struct aes128 key
Definition: uuid.c:34
void ovsdb_idl_txn_write_clone(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column, const struct ovsdb_datum *datum)
Definition: ovsdb-idl.c:2131
void ovsrec_interface_set_lacp_current ( const struct ovsrec_interface row,
const bool lacp_current,
size_t  n_lacp_current 
)
10836 {
10837  struct ovsdb_datum datum;
10838  union ovsdb_atom key;
10839 
10840  ovs_assert(inited);
10841  if (n_lacp_current) {
10842  datum.n = 1;
10843  datum.keys = &key;
10844  key.boolean = *lacp_current;
10845  } else {
10846  datum.n = 0;
10847  datum.keys = NULL;
10848  }
10849  datum.values = NULL;
10851 }
Definition: ovsdb-data.h:125
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: ovsdb-data.h:29
static bool inited
Definition: vswitch-idl.c:18
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:695
struct ovsdb_idl_column ovsrec_interface_columns[OVSREC_INTERFACE_N_COLUMNS]
Definition: vswitch-idl.c:11260
static struct aes128 key
Definition: uuid.c:34
Definition: vswitch-idl.h:826
void ovsdb_idl_txn_write_clone(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column, const struct ovsdb_datum *datum)
Definition: ovsdb-idl.c:2131
void ovsrec_interface_set_link_resets ( const struct ovsrec_interface row,
const int64_t link_resets,
size_t  n_link_resets 
)
10862 {
10863  struct ovsdb_datum datum;
10864  union ovsdb_atom key;
10865 
10866  ovs_assert(inited);
10867  if (n_link_resets) {
10868  datum.n = 1;
10869  datum.keys = &key;
10870  key.integer = *link_resets;
10871  } else {
10872  datum.n = 0;
10873  datum.keys = NULL;
10874  }
10875  datum.values = NULL;
10877 }
Definition: ovsdb-data.h:125
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: ovsdb-data.h:29
static bool inited
Definition: vswitch-idl.c:18
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:695
struct ovsdb_idl_column ovsrec_interface_columns[OVSREC_INTERFACE_N_COLUMNS]
Definition: vswitch-idl.c:11260
Definition: vswitch-idl.h:827
static struct aes128 key
Definition: uuid.c:34
void ovsdb_idl_txn_write_clone(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column, const struct ovsdb_datum *datum)
Definition: ovsdb-idl.c:2131
void ovsrec_interface_set_link_speed ( const struct ovsrec_interface row,
const int64_t link_speed,
size_t  n_link_speed 
)
10888 {
10889  struct ovsdb_datum datum;
10890  union ovsdb_atom key;
10891 
10892  ovs_assert(inited);
10893  if (n_link_speed) {
10894  datum.n = 1;
10895  datum.keys = &key;
10896  key.integer = *link_speed;
10897  } else {
10898  datum.n = 0;
10899  datum.keys = NULL;
10900  }
10901  datum.values = NULL;
10903 }
Definition: ovsdb-data.h:125
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: ovsdb-data.h:29
static bool inited
Definition: vswitch-idl.c:18
Definition: vswitch-idl.h:828
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:695
struct ovsdb_idl_column ovsrec_interface_columns[OVSREC_INTERFACE_N_COLUMNS]
Definition: vswitch-idl.c:11260
static struct aes128 key
Definition: uuid.c:34
void ovsdb_idl_txn_write_clone(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column, const struct ovsdb_datum *datum)
Definition: ovsdb-idl.c:2131
void ovsrec_interface_set_link_state ( const struct ovsrec_interface row,
const char *  link_state 
)
10916 {
10917  struct ovsdb_datum datum;
10918  union ovsdb_atom key;
10919 
10920  ovs_assert(inited);
10921  if (link_state) {
10922  datum.n = 1;
10923  datum.keys = &key;
10924  key.string = CONST_CAST(char *, link_state);
10925  } else {
10926  datum.n = 0;
10927  datum.keys = NULL;
10928  }
10929  datum.values = NULL;
10931 }
Definition: ovsdb-data.h:125
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: ovsdb-data.h:29
Definition: vswitch-idl.h:829
static bool inited
Definition: vswitch-idl.c:18
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:695
struct ovsdb_idl_column ovsrec_interface_columns[OVSREC_INTERFACE_N_COLUMNS]
Definition: vswitch-idl.c:11260
#define CONST_CAST(TYPE, POINTER)
Definition: util.h:88
static struct aes128 key
Definition: uuid.c:34
void ovsdb_idl_txn_write_clone(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column, const struct ovsdb_datum *datum)
Definition: ovsdb-idl.c:2131
void ovsrec_interface_set_lldp ( const struct ovsrec_interface row,
const struct smap lldp 
)
10939 {
10940  struct ovsdb_datum datum;
10941 
10942  ovs_assert(inited);
10943  if (lldp) {
10944  struct smap_node *node;
10945  size_t i;
10946 
10947  datum.n = smap_count(lldp);
10948  datum.keys = xmalloc(datum.n * sizeof *datum.keys);
10949  datum.values = xmalloc(datum.n * sizeof *datum.values);
10950 
10951  i = 0;
10952  SMAP_FOR_EACH (node, lldp) {
10953  datum.keys[i].string = xstrdup(node->key);
10954  datum.values[i].string = xstrdup(node->value);
10955  i++;
10956  }
10958  } else {
10959  ovsdb_datum_init_empty(&datum);
10960  }
10963  &datum);
10964 }
char * value
Definition: smap.h:31
Definition: ovsdb-data.h:125
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: ovsdb-types.h:33
size_t ovsdb_datum_sort_unique(struct ovsdb_datum *datum, enum ovsdb_atomic_type key_type, enum ovsdb_atomic_type value_type)
Definition: ovsdb-data.c:1089
#define SMAP_FOR_EACH(SMAP_NODE, SMAP)
Definition: smap.h:36
void * xmalloc(size_t size)
Definition: util.c:110
char * xstrdup(const char *s)
Definition: util.c:149
static bool inited
Definition: vswitch-idl.c:18
struct hmap_node node
Definition: smap.h:29
Definition: vswitch-idl.h:830
Definition: smap.h:28
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:695
size_t smap_count(const struct smap *smap)
Definition: smap.c:238
struct ovsdb_idl_column ovsrec_interface_columns[OVSREC_INTERFACE_N_COLUMNS]
Definition: vswitch-idl.c:11260
void ovsdb_datum_init_empty(struct ovsdb_datum *datum)
Definition: ovsdb-data.c:835
void ovsdb_idl_txn_write(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column, struct ovsdb_datum *datum)
Definition: ovsdb-idl.c:2123
char * key
Definition: smap.h:30
void ovsrec_interface_set_mac ( const struct ovsrec_interface row,
const char *  mac 
)
10976 {
10977  struct ovsdb_datum datum;
10978  union ovsdb_atom key;
10979 
10980  ovs_assert(inited);
10981  if (mac) {
10982  datum.n = 1;
10983  datum.keys = &key;
10984  key.string = CONST_CAST(char *, mac);
10985  } else {
10986  datum.n = 0;
10987  datum.keys = NULL;
10988  }
10989  datum.values = NULL;
10991 }
Definition: ovsdb-data.h:125
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: ovsdb-data.h:29
static bool inited
Definition: vswitch-idl.c:18
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:695
struct ovsdb_idl_column ovsrec_interface_columns[OVSREC_INTERFACE_N_COLUMNS]
Definition: vswitch-idl.c:11260
Definition: vswitch-idl.h:831
#define CONST_CAST(TYPE, POINTER)
Definition: util.h:88
static struct aes128 key
Definition: uuid.c:34
void ovsdb_idl_txn_write_clone(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column, const struct ovsdb_datum *datum)
Definition: ovsdb-idl.c:2131
void ovsrec_interface_set_mac_in_use ( const struct ovsrec_interface row,
const char *  mac_in_use 
)
11002 {
11003  struct ovsdb_datum datum;
11004  union ovsdb_atom key;
11005 
11006  ovs_assert(inited);
11007  if (mac_in_use) {
11008  datum.n = 1;
11009  datum.keys = &key;
11010  key.string = CONST_CAST(char *, mac_in_use);
11011  } else {
11012  datum.n = 0;
11013  datum.keys = NULL;
11014  }
11015  datum.values = NULL;
11017 }
Definition: ovsdb-data.h:125
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: ovsdb-data.h:29
static bool inited
Definition: vswitch-idl.c:18
Definition: vswitch-idl.h:832
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:695
struct ovsdb_idl_column ovsrec_interface_columns[OVSREC_INTERFACE_N_COLUMNS]
Definition: vswitch-idl.c:11260
#define CONST_CAST(TYPE, POINTER)
Definition: util.h:88
static struct aes128 key
Definition: uuid.c:34
void ovsdb_idl_txn_write_clone(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column, const struct ovsdb_datum *datum)
Definition: ovsdb-idl.c:2131
void ovsrec_interface_set_mtu ( const struct ovsrec_interface row,
const int64_t mtu,
size_t  n_mtu 
)
11028 {
11029  struct ovsdb_datum datum;
11030  union ovsdb_atom key;
11031 
11032  ovs_assert(inited);
11033  if (n_mtu) {
11034  datum.n = 1;
11035  datum.keys = &key;
11036  key.integer = *mtu;
11037  } else {
11038  datum.n = 0;
11039  datum.keys = NULL;
11040  }
11041  datum.values = NULL;
11043 }
Definition: ovsdb-data.h:125
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: ovsdb-data.h:29
static bool inited
Definition: vswitch-idl.c:18
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:695
struct ovsdb_idl_column ovsrec_interface_columns[OVSREC_INTERFACE_N_COLUMNS]
Definition: vswitch-idl.c:11260
Definition: vswitch-idl.h:833
static struct aes128 key
Definition: uuid.c:34
void ovsdb_idl_txn_write_clone(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column, const struct ovsdb_datum *datum)
Definition: ovsdb-idl.c:2131
void ovsrec_interface_set_name ( const struct ovsrec_interface row,
const char *  name 
)
11051 {
11052  struct ovsdb_datum datum;
11053  union ovsdb_atom key;
11054 
11055  ovs_assert(inited);
11056  datum.n = 1;
11057  datum.keys = &key;
11058  key.string = CONST_CAST(char *, name);
11059  datum.values = NULL;
11061 }
Definition: ovsdb-data.h:125
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: ovsdb-data.h:29
static bool inited
Definition: vswitch-idl.c:18
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:695
struct ovsdb_idl_column ovsrec_interface_columns[OVSREC_INTERFACE_N_COLUMNS]
Definition: vswitch-idl.c:11260
Definition: vswitch-idl.h:834
string name
Definition: setup.py:30
#define CONST_CAST(TYPE, POINTER)
Definition: util.h:88
static struct aes128 key
Definition: uuid.c:34
void ovsdb_idl_txn_write_clone(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column, const struct ovsdb_datum *datum)
Definition: ovsdb-idl.c:2131
void ovsrec_interface_set_ofport ( const struct ovsrec_interface row,
const int64_t ofport,
size_t  n_ofport 
)
11072 {
11073  struct ovsdb_datum datum;
11074  union ovsdb_atom key;
11075 
11076  ovs_assert(inited);
11077  if (n_ofport) {
11078  datum.n = 1;
11079  datum.keys = &key;
11080  key.integer = *ofport;
11081  } else {
11082  datum.n = 0;
11083  datum.keys = NULL;
11084  }
11085  datum.values = NULL;
11087 }
Definition: ovsdb-data.h:125
Definition: vswitch-idl.h:835
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: ovsdb-data.h:29
static bool inited
Definition: vswitch-idl.c:18
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:695
struct ovsdb_idl_column ovsrec_interface_columns[OVSREC_INTERFACE_N_COLUMNS]
Definition: vswitch-idl.c:11260
static struct aes128 key
Definition: uuid.c:34
Definition: ofproto-provider.h:153
void ovsdb_idl_txn_write_clone(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column, const struct ovsdb_datum *datum)
Definition: ovsdb-idl.c:2131
void ovsrec_interface_set_ofport_request ( const struct ovsrec_interface row,
const int64_t ofport_request,
size_t  n_ofport_request 
)
11100 {
11101  struct ovsdb_datum datum;
11102  union ovsdb_atom key;
11103 
11104  ovs_assert(inited);
11105  if (n_ofport_request) {
11106  datum.n = 1;
11107  datum.keys = &key;
11108  key.integer = *ofport_request;
11109  } else {
11110  datum.n = 0;
11111  datum.keys = NULL;
11112  }
11113  datum.values = NULL;
11115 }
Definition: ovsdb-data.h:125
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: ovsdb-data.h:29
Definition: vswitch-idl.h:836
static bool inited
Definition: vswitch-idl.c:18
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:695
struct ovsdb_idl_column ovsrec_interface_columns[OVSREC_INTERFACE_N_COLUMNS]
Definition: vswitch-idl.c:11260
static struct aes128 key
Definition: uuid.c:34
void ovsdb_idl_txn_write_clone(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column, const struct ovsdb_datum *datum)
Definition: ovsdb-idl.c:2131
void ovsrec_interface_set_options ( const struct ovsrec_interface row,
const struct smap options 
)
11123 {
11124  struct ovsdb_datum datum;
11125 
11126  ovs_assert(inited);
11127  if (options) {
11128  struct smap_node *node;
11129  size_t i;
11130 
11131  datum.n = smap_count(options);
11132  datum.keys = xmalloc(datum.n * sizeof *datum.keys);
11133  datum.values = xmalloc(datum.n * sizeof *datum.values);
11134 
11135  i = 0;
11136  SMAP_FOR_EACH (node, options) {
11137  datum.keys[i].string = xstrdup(node->key);
11138  datum.values[i].string = xstrdup(node->value);
11139  i++;
11140  }
11142  } else {
11143  ovsdb_datum_init_empty(&datum);
11144  }
11147  &datum);
11148 }
char * value
Definition: smap.h:31
Definition: ovsdb-data.h:125
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: vswitch-idl.h:837
Definition: ovsdb-types.h:33
size_t ovsdb_datum_sort_unique(struct ovsdb_datum *datum, enum ovsdb_atomic_type key_type, enum ovsdb_atomic_type value_type)
Definition: ovsdb-data.c:1089
#define SMAP_FOR_EACH(SMAP_NODE, SMAP)
Definition: smap.h:36
void * xmalloc(size_t size)
Definition: util.c:110
char * xstrdup(const char *s)
Definition: util.c:149
static bool inited
Definition: vswitch-idl.c:18
struct hmap_node node
Definition: smap.h:29
Definition: smap.h:28
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:695
size_t smap_count(const struct smap *smap)
Definition: smap.c:238
struct ovsdb_idl_column ovsrec_interface_columns[OVSREC_INTERFACE_N_COLUMNS]
Definition: vswitch-idl.c:11260
void ovsdb_datum_init_empty(struct ovsdb_datum *datum)
Definition: ovsdb-data.c:835
void ovsdb_idl_txn_write(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column, struct ovsdb_datum *datum)
Definition: ovsdb-idl.c:2123
char * key
Definition: smap.h:30
void ovsrec_interface_set_other_config ( const struct ovsrec_interface row,
const struct smap other_config 
)
11157 {
11158  struct ovsdb_datum datum;
11159 
11160  ovs_assert(inited);
11161  if (other_config) {
11162  struct smap_node *node;
11163  size_t i;
11164 
11165  datum.n = smap_count(other_config);
11166  datum.keys = xmalloc(datum.n * sizeof *datum.keys);
11167  datum.values = xmalloc(datum.n * sizeof *datum.values);
11168 
11169  i = 0;
11170  SMAP_FOR_EACH (node, other_config) {
11171  datum.keys[i].string = xstrdup(node->key);
11172  datum.values[i].string = xstrdup(node->value);
11173  i++;
11174  }
11176  } else {
11177  ovsdb_datum_init_empty(&datum);
11178  }
11181  &datum);
11182 }
char * value
Definition: smap.h:31
Definition: ovsdb-data.h:125
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: vswitch-idl.h:838
Definition: ovsdb-types.h:33
size_t ovsdb_datum_sort_unique(struct ovsdb_datum *datum, enum ovsdb_atomic_type key_type, enum ovsdb_atomic_type value_type)
Definition: ovsdb-data.c:1089
#define SMAP_FOR_EACH(SMAP_NODE, SMAP)
Definition: smap.h:36
void * xmalloc(size_t size)
Definition: util.c:110
char * xstrdup(const char *s)
Definition: util.c:149
static bool inited
Definition: vswitch-idl.c:18
struct hmap_node node
Definition: smap.h:29
Definition: smap.h:28
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:695
size_t smap_count(const struct smap *smap)
Definition: smap.c:238
struct ovsdb_idl_column ovsrec_interface_columns[OVSREC_INTERFACE_N_COLUMNS]
Definition: vswitch-idl.c:11260
void ovsdb_datum_init_empty(struct ovsdb_datum *datum)
Definition: ovsdb-data.c:835
void ovsdb_idl_txn_write(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column, struct ovsdb_datum *datum)
Definition: ovsdb-idl.c:2123
char * key
Definition: smap.h:30
void ovsrec_interface_set_statistics ( const struct ovsrec_interface row,
const char **  key_statistics,
const int64_t value_statistics,
size_t  n_statistics 
)
11192 {
11193  struct ovsdb_datum datum;
11194  size_t i;
11195 
11196  ovs_assert(inited);
11197  datum.n = n_statistics;
11198  datum.keys = n_statistics ? xmalloc(n_statistics * sizeof *datum.keys) : NULL;
11199  datum.values = xmalloc(n_statistics * sizeof *datum.values);
11200  for (i = 0; i < n_statistics; i++) {
11201  datum.keys[i].string = xstrdup(key_statistics[i]);
11202  datum.values[i].integer = value_statistics[i];
11203  }
11206 }
Definition: ovsdb-data.h:125
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: ovsdb-types.h:33
size_t ovsdb_datum_sort_unique(struct ovsdb_datum *datum, enum ovsdb_atomic_type key_type, enum ovsdb_atomic_type value_type)
Definition: ovsdb-data.c:1089
Definition: ovsdb-types.h:30
void * xmalloc(size_t size)
Definition: util.c:110
char * xstrdup(const char *s)
Definition: util.c:149
Definition: vswitch-idl.h:839
static bool inited
Definition: vswitch-idl.c:18
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:695
struct ovsdb_idl_column ovsrec_interface_columns[OVSREC_INTERFACE_N_COLUMNS]
Definition: vswitch-idl.c:11260
void ovsdb_idl_txn_write(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column, struct ovsdb_datum *datum)
Definition: ovsdb-idl.c:2123
void ovsrec_interface_set_status ( const struct ovsrec_interface row,
const struct smap status 
)
11214 {
11215  struct ovsdb_datum datum;
11216 
11217  ovs_assert(inited);
11218  if (status) {
11219  struct smap_node *node;
11220  size_t i;
11221 
11222  datum.n = smap_count(status);
11223  datum.keys = xmalloc(datum.n * sizeof *datum.keys);
11224  datum.values = xmalloc(datum.n * sizeof *datum.values);
11225 
11226  i = 0;
11227  SMAP_FOR_EACH (node, status) {
11228  datum.keys[i].string = xstrdup(node->key);
11229  datum.values[i].string = xstrdup(node->value);
11230  i++;
11231  }
11233  } else {
11234  ovsdb_datum_init_empty(&datum);
11235  }
11238  &datum);
11239 }
char * value
Definition: smap.h:31
Definition: ovsdb-data.h:125
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: ovsdb-types.h:33
size_t ovsdb_datum_sort_unique(struct ovsdb_datum *datum, enum ovsdb_atomic_type key_type, enum ovsdb_atomic_type value_type)
Definition: ovsdb-data.c:1089
#define SMAP_FOR_EACH(SMAP_NODE, SMAP)
Definition: smap.h:36
void * xmalloc(size_t size)
Definition: util.c:110
char * xstrdup(const char *s)
Definition: util.c:149
static bool inited
Definition: vswitch-idl.c:18
struct hmap_node node
Definition: smap.h:29
Definition: smap.h:28
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:695
Definition: vswitch-idl.h:840
size_t smap_count(const struct smap *smap)
Definition: smap.c:238
struct ovsdb_idl_column ovsrec_interface_columns[OVSREC_INTERFACE_N_COLUMNS]
Definition: vswitch-idl.c:11260
void ovsdb_datum_init_empty(struct ovsdb_datum *datum)
Definition: ovsdb-data.c:835
void ovsdb_idl_txn_write(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column, struct ovsdb_datum *datum)
Definition: ovsdb-idl.c:2123
char * key
Definition: smap.h:30
void ovsrec_interface_set_type ( const struct ovsrec_interface row,
const char *  type 
)
11248 {
11249  struct ovsdb_datum datum;
11250  union ovsdb_atom key;
11251 
11252  ovs_assert(inited);
11253  datum.n = 1;
11254  datum.keys = &key;
11255  key.string = CONST_CAST(char *, type);
11256  datum.values = NULL;
11258 }
Definition: ovsdb-data.h:125
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: ovsdb-data.h:29
static bool inited
Definition: vswitch-idl.c:18
Definition: vswitch-idl.h:841
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:695
struct ovsdb_idl_column ovsrec_interface_columns[OVSREC_INTERFACE_N_COLUMNS]
Definition: vswitch-idl.c:11260
#define CONST_CAST(TYPE, POINTER)
Definition: util.h:88
static struct aes128 key
Definition: uuid.c:34
__be16 type
Definition: flow.h:117
void ovsdb_idl_txn_write_clone(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column, const struct ovsdb_datum *datum)
Definition: ovsdb-idl.c:2131
static void ovsrec_interface_unparse_admin_state ( struct ovsdb_idl_row *row  OVS_UNUSED)
static
8162 {
8163  /* Nothing to do. */
8164 }
static void ovsrec_interface_unparse_bfd ( struct ovsdb_idl_row row_)
static
8168 {
8169  struct ovsrec_interface *row = ovsrec_interface_cast(row_);
8170 
8171  ovs_assert(inited);
8172  smap_destroy(&row->bfd);
8173 }
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: vswitch-idl.h:694
struct smap bfd
Definition: vswitch-idl.h:701
static bool inited
Definition: vswitch-idl.c:18
void smap_destroy(struct smap *smap)
Definition: smap.c:39
static struct ovsrec_interface * ovsrec_interface_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:58
static void ovsrec_interface_unparse_bfd_status ( struct ovsdb_idl_row row_)
static
8177 {
8178  struct ovsrec_interface *row = ovsrec_interface_cast(row_);
8179 
8180  ovs_assert(inited);
8181  smap_destroy(&row->bfd_status);
8182 }
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: vswitch-idl.h:694
static bool inited
Definition: vswitch-idl.c:18
void smap_destroy(struct smap *smap)
Definition: smap.c:39
struct smap bfd_status
Definition: vswitch-idl.h:704
static struct ovsrec_interface * ovsrec_interface_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:58
static void ovsrec_interface_unparse_cfm_fault ( struct ovsdb_idl_row row_)
static
8186 {
8187  struct ovsrec_interface *row = ovsrec_interface_cast(row_);
8188 
8189  ovs_assert(inited);
8190  free(row->cfm_fault);
8191 }
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: vswitch-idl.h:694
static bool inited
Definition: vswitch-idl.c:18
bool * cfm_fault
Definition: vswitch-idl.h:707
static struct ovsrec_interface * ovsrec_interface_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:58
static void ovsrec_interface_unparse_cfm_fault_status ( struct ovsdb_idl_row row_)
static
8195 {
8196  struct ovsrec_interface *row = ovsrec_interface_cast(row_);
8197 
8198  ovs_assert(inited);
8199  free(row->cfm_fault_status);
8200 }
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: vswitch-idl.h:694
static bool inited
Definition: vswitch-idl.c:18
char ** cfm_fault_status
Definition: vswitch-idl.h:711
static struct ovsrec_interface * ovsrec_interface_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:58
static void ovsrec_interface_unparse_cfm_flap_count ( struct ovsdb_idl_row row_)
static
8204 {
8205  struct ovsrec_interface *row = ovsrec_interface_cast(row_);
8206 
8207  ovs_assert(inited);
8208  free(row->cfm_flap_count);
8209 }
#define ovs_assert(CONDITION)
Definition: util.h:73
int64_t * cfm_flap_count
Definition: vswitch-idl.h:715
Definition: vswitch-idl.h:694
static bool inited
Definition: vswitch-idl.c:18
static struct ovsrec_interface * ovsrec_interface_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:58
static void ovsrec_interface_unparse_cfm_health ( struct ovsdb_idl_row row_)
static
8213 {
8214  struct ovsrec_interface *row = ovsrec_interface_cast(row_);
8215 
8216  ovs_assert(inited);
8217  free(row->cfm_health);
8218 }
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: vswitch-idl.h:694
static bool inited
Definition: vswitch-idl.c:18
int64_t * cfm_health
Definition: vswitch-idl.h:719
static struct ovsrec_interface * ovsrec_interface_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:58
static void ovsrec_interface_unparse_cfm_mpid ( struct ovsdb_idl_row row_)
static
8222 {
8223  struct ovsrec_interface *row = ovsrec_interface_cast(row_);
8224 
8225  ovs_assert(inited);
8226  free(row->cfm_mpid);
8227 }
#define ovs_assert(CONDITION)
Definition: util.h:73
int64_t * cfm_mpid
Definition: vswitch-idl.h:723
Definition: vswitch-idl.h:694
static bool inited
Definition: vswitch-idl.c:18
static struct ovsrec_interface * ovsrec_interface_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:58
static void ovsrec_interface_unparse_cfm_remote_mpids ( struct ovsdb_idl_row row_)
static
8231 {
8232  struct ovsrec_interface *row = ovsrec_interface_cast(row_);
8233 
8234  ovs_assert(inited);
8235  free(row->cfm_remote_mpids);
8236 }
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: vswitch-idl.h:694
static bool inited
Definition: vswitch-idl.c:18
int64_t * cfm_remote_mpids
Definition: vswitch-idl.h:727
static struct ovsrec_interface * ovsrec_interface_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:58
static void ovsrec_interface_unparse_cfm_remote_opstate ( struct ovsdb_idl_row *row  OVS_UNUSED)
static
8240 {
8241  /* Nothing to do. */
8242 }
static void ovsrec_interface_unparse_duplex ( struct ovsdb_idl_row *row  OVS_UNUSED)
static
8246 {
8247  /* Nothing to do. */
8248 }
static void ovsrec_interface_unparse_error ( struct ovsdb_idl_row *row  OVS_UNUSED)
static
8252 {
8253  /* Nothing to do. */
8254 }
static void ovsrec_interface_unparse_external_ids ( struct ovsdb_idl_row row_)
static
8258 {
8259  struct ovsrec_interface *row = ovsrec_interface_cast(row_);
8260 
8261  ovs_assert(inited);
8262  smap_destroy(&row->external_ids);
8263 }
#define ovs_assert(CONDITION)
Definition: util.h:73
struct smap external_ids
Definition: vswitch-idl.h:740
Definition: vswitch-idl.h:694
static bool inited
Definition: vswitch-idl.c:18
void smap_destroy(struct smap *smap)
Definition: smap.c:39
static struct ovsrec_interface * ovsrec_interface_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:58
static void ovsrec_interface_unparse_ifindex ( struct ovsdb_idl_row row_)
static
8267 {
8268  struct ovsrec_interface *row = ovsrec_interface_cast(row_);
8269 
8270  ovs_assert(inited);
8271  free(row->ifindex);
8272 }
#define ovs_assert(CONDITION)
Definition: util.h:73
int64_t * ifindex
Definition: vswitch-idl.h:743
Definition: vswitch-idl.h:694
static bool inited
Definition: vswitch-idl.c:18
static struct ovsrec_interface * ovsrec_interface_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:58
static void ovsrec_interface_unparse_ingress_policing_burst ( struct ovsdb_idl_row *row  OVS_UNUSED)
static
8276 {
8277  /* Nothing to do. */
8278 }
static void ovsrec_interface_unparse_ingress_policing_rate ( struct ovsdb_idl_row *row  OVS_UNUSED)
static
8282 {
8283  /* Nothing to do. */
8284 }
static void ovsrec_interface_unparse_lacp_current ( struct ovsdb_idl_row row_)
static
8288 {
8289  struct ovsrec_interface *row = ovsrec_interface_cast(row_);
8290 
8291  ovs_assert(inited);
8292  free(row->lacp_current);
8293 }
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: vswitch-idl.h:694
static bool inited
Definition: vswitch-idl.c:18
static struct ovsrec_interface * ovsrec_interface_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:58
bool * lacp_current
Definition: vswitch-idl.h:753
static void ovsrec_interface_unparse_link_resets ( struct ovsdb_idl_row row_)
static
8297 {
8298  struct ovsrec_interface *row = ovsrec_interface_cast(row_);
8299 
8300  ovs_assert(inited);
8301  free(row->link_resets);
8302 }
int64_t * link_resets
Definition: vswitch-idl.h:757
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: vswitch-idl.h:694
static bool inited
Definition: vswitch-idl.c:18
static struct ovsrec_interface * ovsrec_interface_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:58
static void ovsrec_interface_unparse_link_speed ( struct ovsdb_idl_row row_)
static
8306 {
8307  struct ovsrec_interface *row = ovsrec_interface_cast(row_);
8308 
8309  ovs_assert(inited);
8310  free(row->link_speed);
8311 }
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: vswitch-idl.h:694
int64_t * link_speed
Definition: vswitch-idl.h:761
static bool inited
Definition: vswitch-idl.c:18
static struct ovsrec_interface * ovsrec_interface_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:58
static void ovsrec_interface_unparse_link_state ( struct ovsdb_idl_row *row  OVS_UNUSED)
static
8315 {
8316  /* Nothing to do. */
8317 }
static void ovsrec_interface_unparse_lldp ( struct ovsdb_idl_row row_)
static
8321 {
8322  struct ovsrec_interface *row = ovsrec_interface_cast(row_);
8323 
8324  ovs_assert(inited);
8325  smap_destroy(&row->lldp);
8326 }
#define ovs_assert(CONDITION)
Definition: util.h:73
struct smap lldp
Definition: vswitch-idl.h:768
Definition: vswitch-idl.h:694
static bool inited
Definition: vswitch-idl.c:18
void smap_destroy(struct smap *smap)
Definition: smap.c:39
static struct ovsrec_interface * ovsrec_interface_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:58
static void ovsrec_interface_unparse_mac ( struct ovsdb_idl_row *row  OVS_UNUSED)
static
8330 {
8331  /* Nothing to do. */
8332 }
static void ovsrec_interface_unparse_mac_in_use ( struct ovsdb_idl_row *row  OVS_UNUSED)
static
8336 {
8337  /* Nothing to do. */
8338 }
static void ovsrec_interface_unparse_mtu ( struct ovsdb_idl_row row_)
static
8342 {
8343  struct ovsrec_interface *row = ovsrec_interface_cast(row_);
8344 
8345  ovs_assert(inited);
8346  free(row->mtu);
8347 }
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: vswitch-idl.h:694
static bool inited
Definition: vswitch-idl.c:18
int64_t * mtu
Definition: vswitch-idl.h:777
static struct ovsrec_interface * ovsrec_interface_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:58
static void ovsrec_interface_unparse_name ( struct ovsdb_idl_row *row  OVS_UNUSED)
static
8351 {
8352  /* Nothing to do. */
8353 }
static void ovsrec_interface_unparse_ofport ( struct ovsdb_idl_row row_)
static
8357 {
8358  struct ovsrec_interface *row = ovsrec_interface_cast(row_);
8359 
8360  ovs_assert(inited);
8361  free(row->ofport);
8362 }
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: vswitch-idl.h:694
static bool inited
Definition: vswitch-idl.c:18
static struct ovsrec_interface * ovsrec_interface_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:58
int64_t * ofport
Definition: vswitch-idl.h:784
static void ovsrec_interface_unparse_ofport_request ( struct ovsdb_idl_row row_)
static
8366 {
8367  struct ovsrec_interface *row = ovsrec_interface_cast(row_);
8368 
8369  ovs_assert(inited);
8370  free(row->ofport_request);
8371 }
#define ovs_assert(CONDITION)
Definition: util.h:73
int64_t * ofport_request
Definition: vswitch-idl.h:788
Definition: vswitch-idl.h:694
static bool inited
Definition: vswitch-idl.c:18
static struct ovsrec_interface * ovsrec_interface_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:58
static void ovsrec_interface_unparse_options ( struct ovsdb_idl_row row_)
static
8375 {
8376  struct ovsrec_interface *row = ovsrec_interface_cast(row_);
8377 
8378  ovs_assert(inited);
8379  smap_destroy(&row->options);
8380 }
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: vswitch-idl.h:694
static bool inited
Definition: vswitch-idl.c:18
void smap_destroy(struct smap *smap)
Definition: smap.c:39
struct smap options
Definition: vswitch-idl.h:792
static struct ovsrec_interface * ovsrec_interface_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:58
static void ovsrec_interface_unparse_other_config ( struct ovsdb_idl_row row_)
static
8384 {
8385  struct ovsrec_interface *row = ovsrec_interface_cast(row_);
8386 
8387  ovs_assert(inited);
8388  smap_destroy(&row->other_config);
8389 }
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: vswitch-idl.h:694
static bool inited
Definition: vswitch-idl.c:18
void smap_destroy(struct smap *smap)
Definition: smap.c:39
struct smap other_config
Definition: vswitch-idl.h:795
static struct ovsrec_interface * ovsrec_interface_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:58
static void ovsrec_interface_unparse_statistics ( struct ovsdb_idl_row row_)
static
8393 {
8394  struct ovsrec_interface *row = ovsrec_interface_cast(row_);
8395 
8396  ovs_assert(inited);
8397  free(row->key_statistics);
8398  free(row->value_statistics);
8399 }
char ** key_statistics
Definition: vswitch-idl.h:798
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: vswitch-idl.h:694
static bool inited
Definition: vswitch-idl.c:18
static struct ovsrec_interface * ovsrec_interface_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:58
int64_t * value_statistics
Definition: vswitch-idl.h:799
static void ovsrec_interface_unparse_status ( struct ovsdb_idl_row row_)
static
8403 {
8404  struct ovsrec_interface *row = ovsrec_interface_cast(row_);
8405 
8406  ovs_assert(inited);
8407  smap_destroy(&row->status);
8408 }
#define ovs_assert(CONDITION)
Definition: util.h:73
struct smap status
Definition: vswitch-idl.h:803
Definition: vswitch-idl.h:694
static bool inited
Definition: vswitch-idl.c:18
void smap_destroy(struct smap *smap)
Definition: smap.c:39
static struct ovsrec_interface * ovsrec_interface_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:58
static void ovsrec_interface_unparse_type ( struct ovsdb_idl_row *row  OVS_UNUSED)
static
8412 {
8413  /* Nothing to do. */
8414 }
void ovsrec_interface_verify_admin_state ( const struct ovsrec_interface row)
8514 {
8515  ovs_assert(inited);
8517 }
Definition: vswitch-idl.h:810
#define ovs_assert(CONDITION)
Definition: util.h:73
static bool inited
Definition: vswitch-idl.c:18
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:695
struct ovsdb_idl_column ovsrec_interface_columns[OVSREC_INTERFACE_N_COLUMNS]
Definition: vswitch-idl.c:11260
void ovsdb_idl_txn_verify(const struct ovsdb_idl_row *, const struct ovsdb_idl_column *)
Definition: ovsdb-idl.c:2168
void ovsrec_interface_verify_bfd ( const struct ovsrec_interface row)
8546 {
8547  ovs_assert(inited);
8549 }
#define ovs_assert(CONDITION)
Definition: util.h:73
static bool inited
Definition: vswitch-idl.c:18
Definition: vswitch-idl.h:811
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:695
struct ovsdb_idl_column ovsrec_interface_columns[OVSREC_INTERFACE_N_COLUMNS]
Definition: vswitch-idl.c:11260
void ovsdb_idl_txn_verify(const struct ovsdb_idl_row *, const struct ovsdb_idl_column *)
Definition: ovsdb-idl.c:2168
void ovsrec_interface_verify_bfd_status ( const struct ovsrec_interface row)
8578 {
8579  ovs_assert(inited);
8581 }
#define ovs_assert(CONDITION)
Definition: util.h:73
static bool inited
Definition: vswitch-idl.c:18
Definition: vswitch-idl.h:812
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:695
struct ovsdb_idl_column ovsrec_interface_columns[OVSREC_INTERFACE_N_COLUMNS]
Definition: vswitch-idl.c:11260
void ovsdb_idl_txn_verify(const struct ovsdb_idl_row *, const struct ovsdb_idl_column *)
Definition: ovsdb-idl.c:2168
void ovsrec_interface_verify_cfm_fault ( const struct ovsrec_interface row)
8610 {
8611  ovs_assert(inited);
8613 }
#define ovs_assert(CONDITION)
Definition: util.h:73
static bool inited
Definition: vswitch-idl.c:18
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:695
struct ovsdb_idl_column ovsrec_interface_columns[OVSREC_INTERFACE_N_COLUMNS]
Definition: vswitch-idl.c:11260
void ovsdb_idl_txn_verify(const struct ovsdb_idl_row *, const struct ovsdb_idl_column *)
Definition: ovsdb-idl.c:2168
Definition: vswitch-idl.h:813
void ovsrec_interface_verify_cfm_fault_status ( const struct ovsrec_interface row)
8642 {
8643  ovs_assert(inited);
8645 }
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: vswitch-idl.h:814
static bool inited
Definition: vswitch-idl.c:18
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:695
struct ovsdb_idl_column ovsrec_interface_columns[OVSREC_INTERFACE_N_COLUMNS]
Definition: vswitch-idl.c:11260
void ovsdb_idl_txn_verify(const struct ovsdb_idl_row *, const struct ovsdb_idl_column *)
Definition: ovsdb-idl.c:2168
void ovsrec_interface_verify_cfm_flap_count ( const struct ovsrec_interface row)
8674 {
8675  ovs_assert(inited);
8677 }
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: vswitch-idl.h:815
static bool inited
Definition: vswitch-idl.c:18
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:695
struct ovsdb_idl_column ovsrec_interface_columns[OVSREC_INTERFACE_N_COLUMNS]
Definition: vswitch-idl.c:11260
void ovsdb_idl_txn_verify(const struct ovsdb_idl_row *, const struct ovsdb_idl_column *)
Definition: ovsdb-idl.c:2168
void ovsrec_interface_verify_cfm_health ( const struct ovsrec_interface row)
8706 {
8707  ovs_assert(inited);
8709 }
#define ovs_assert(CONDITION)
Definition: util.h:73
static bool inited
Definition: vswitch-idl.c:18
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:695
struct ovsdb_idl_column ovsrec_interface_columns[OVSREC_INTERFACE_N_COLUMNS]
Definition: vswitch-idl.c:11260
void ovsdb_idl_txn_verify(const struct ovsdb_idl_row *, const struct ovsdb_idl_column *)
Definition: ovsdb-idl.c:2168
Definition: vswitch-idl.h:816
void ovsrec_interface_verify_cfm_mpid ( const struct ovsrec_interface row)
8738 {
8739  ovs_assert(inited);
8741 }
#define ovs_assert(CONDITION)
Definition: util.h:73
static bool inited
Definition: vswitch-idl.c:18
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:695
struct ovsdb_idl_column ovsrec_interface_columns[OVSREC_INTERFACE_N_COLUMNS]
Definition: vswitch-idl.c:11260
void ovsdb_idl_txn_verify(const struct ovsdb_idl_row *, const struct ovsdb_idl_column *)
Definition: ovsdb-idl.c:2168
Definition: vswitch-idl.h:817
void ovsrec_interface_verify_cfm_remote_mpids ( const struct ovsrec_interface row)
8770 {
8771  ovs_assert(inited);
8773 }
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: vswitch-idl.h:818
static bool inited
Definition: vswitch-idl.c:18
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:695
struct ovsdb_idl_column ovsrec_interface_columns[OVSREC_INTERFACE_N_COLUMNS]
Definition: vswitch-idl.c:11260
void ovsdb_idl_txn_verify(const struct ovsdb_idl_row *, const struct ovsdb_idl_column *)
Definition: ovsdb-idl.c:2168
void ovsrec_interface_verify_cfm_remote_opstate ( const struct ovsrec_interface row)
8802 {
8803  ovs_assert(inited);
8805 }
#define ovs_assert(CONDITION)
Definition: util.h:73
static bool inited
Definition: vswitch-idl.c:18
Definition: vswitch-idl.h:819
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:695
struct ovsdb_idl_column ovsrec_interface_columns[OVSREC_INTERFACE_N_COLUMNS]
Definition: vswitch-idl.c:11260
void ovsdb_idl_txn_verify(const struct ovsdb_idl_row *, const struct ovsdb_idl_column *)
Definition: ovsdb-idl.c:2168
void ovsrec_interface_verify_duplex ( const struct ovsrec_interface row)
8834 {
8835  ovs_assert(inited);
8837 }
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: vswitch-idl.h:820
static bool inited
Definition: vswitch-idl.c:18
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:695
struct ovsdb_idl_column ovsrec_interface_columns[OVSREC_INTERFACE_N_COLUMNS]
Definition: vswitch-idl.c:11260
void ovsdb_idl_txn_verify(const struct ovsdb_idl_row *, const struct ovsdb_idl_column *)
Definition: ovsdb-idl.c:2168
void ovsrec_interface_verify_error ( const struct ovsrec_interface row)
8866 {
8867  ovs_assert(inited);
8869 }
#define ovs_assert(CONDITION)
Definition: util.h:73
static bool inited
Definition: vswitch-idl.c:18
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:695
struct ovsdb_idl_column ovsrec_interface_columns[OVSREC_INTERFACE_N_COLUMNS]
Definition: vswitch-idl.c:11260
Definition: vswitch-idl.h:821
void ovsdb_idl_txn_verify(const struct ovsdb_idl_row *, const struct ovsdb_idl_column *)
Definition: ovsdb-idl.c:2168
void ovsrec_interface_verify_external_ids ( const struct ovsrec_interface row)
8898 {
8899  ovs_assert(inited);
8901 }
#define ovs_assert(CONDITION)
Definition: util.h:73
static bool inited
Definition: vswitch-idl.c:18
Definition: vswitch-idl.h:822
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:695
struct ovsdb_idl_column ovsrec_interface_columns[OVSREC_INTERFACE_N_COLUMNS]
Definition: vswitch-idl.c:11260
void ovsdb_idl_txn_verify(const struct ovsdb_idl_row *, const struct ovsdb_idl_column *)
Definition: ovsdb-idl.c:2168
void ovsrec_interface_verify_ifindex ( const struct ovsrec_interface row)
8930 {
8931  ovs_assert(inited);
8933 }
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: vswitch-idl.h:823
static bool inited
Definition: vswitch-idl.c:18
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:695
struct ovsdb_idl_column ovsrec_interface_columns[OVSREC_INTERFACE_N_COLUMNS]
Definition: vswitch-idl.c:11260
void ovsdb_idl_txn_verify(const struct ovsdb_idl_row *, const struct ovsdb_idl_column *)
Definition: ovsdb-idl.c:2168
void ovsrec_interface_verify_ingress_policing_burst ( const struct ovsrec_interface row)
8962 {
8963  ovs_assert(inited);
8965 }
#define ovs_assert(CONDITION)
Definition: util.h:73
static bool inited
Definition: vswitch-idl.c:18
Definition: vswitch-idl.h:824
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:695
struct ovsdb_idl_column ovsrec_interface_columns[OVSREC_INTERFACE_N_COLUMNS]
Definition: vswitch-idl.c:11260
void ovsdb_idl_txn_verify(const struct ovsdb_idl_row *, const struct ovsdb_idl_column *)
Definition: ovsdb-idl.c:2168
void ovsrec_interface_verify_ingress_policing_rate ( const struct ovsrec_interface row)
8994 {
8995  ovs_assert(inited);
8997 }
#define ovs_assert(CONDITION)
Definition: util.h:73
static bool inited
Definition: vswitch-idl.c:18
Definition: vswitch-idl.h:825
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:695
struct ovsdb_idl_column ovsrec_interface_columns[OVSREC_INTERFACE_N_COLUMNS]
Definition: vswitch-idl.c:11260
void ovsdb_idl_txn_verify(const struct ovsdb_idl_row *, const struct ovsdb_idl_column *)
Definition: ovsdb-idl.c:2168
void ovsrec_interface_verify_lacp_current ( const struct ovsrec_interface row)
9026 {
9027  ovs_assert(inited);
9029 }
#define ovs_assert(CONDITION)
Definition: util.h:73
static bool inited
Definition: vswitch-idl.c:18
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:695
struct ovsdb_idl_column ovsrec_interface_columns[OVSREC_INTERFACE_N_COLUMNS]
Definition: vswitch-idl.c:11260
void ovsdb_idl_txn_verify(const struct ovsdb_idl_row *, const struct ovsdb_idl_column *)
Definition: ovsdb-idl.c:2168
Definition: vswitch-idl.h:826
void ovsrec_interface_verify_link_resets ( const struct ovsrec_interface row)
9058 {
9059  ovs_assert(inited);
9061 }
#define ovs_assert(CONDITION)
Definition: util.h:73
static bool inited
Definition: vswitch-idl.c:18
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:695
struct ovsdb_idl_column ovsrec_interface_columns[OVSREC_INTERFACE_N_COLUMNS]
Definition: vswitch-idl.c:11260
void ovsdb_idl_txn_verify(const struct ovsdb_idl_row *, const struct ovsdb_idl_column *)
Definition: ovsdb-idl.c:2168
Definition: vswitch-idl.h:827
void ovsrec_interface_verify_link_speed ( const struct ovsrec_interface row)
9090 {
9091  ovs_assert(inited);
9093 }
#define ovs_assert(CONDITION)
Definition: util.h:73
static bool inited
Definition: vswitch-idl.c:18
Definition: vswitch-idl.h:828
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:695
struct ovsdb_idl_column ovsrec_interface_columns[OVSREC_INTERFACE_N_COLUMNS]
Definition: vswitch-idl.c:11260
void ovsdb_idl_txn_verify(const struct ovsdb_idl_row *, const struct ovsdb_idl_column *)
Definition: ovsdb-idl.c:2168
void ovsrec_interface_verify_link_state ( const struct ovsrec_interface row)
9122 {
9123  ovs_assert(inited);
9125 }
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: vswitch-idl.h:829
static bool inited
Definition: vswitch-idl.c:18
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:695
struct ovsdb_idl_column ovsrec_interface_columns[OVSREC_INTERFACE_N_COLUMNS]
Definition: vswitch-idl.c:11260
void ovsdb_idl_txn_verify(const struct ovsdb_idl_row *, const struct ovsdb_idl_column *)
Definition: ovsdb-idl.c:2168
void ovsrec_interface_verify_lldp ( const struct ovsrec_interface row)
9154 {
9155  ovs_assert(inited);
9157 }
#define ovs_assert(CONDITION)
Definition: util.h:73
static bool inited
Definition: vswitch-idl.c:18
Definition: vswitch-idl.h:830
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:695
struct ovsdb_idl_column ovsrec_interface_columns[OVSREC_INTERFACE_N_COLUMNS]
Definition: vswitch-idl.c:11260
void ovsdb_idl_txn_verify(const struct ovsdb_idl_row *, const struct ovsdb_idl_column *)
Definition: ovsdb-idl.c:2168
void ovsrec_interface_verify_mac ( const struct ovsrec_interface row)
9186 {
9187  ovs_assert(inited);
9189 }
#define ovs_assert(CONDITION)
Definition: util.h:73
static bool inited
Definition: vswitch-idl.c:18
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:695
struct ovsdb_idl_column ovsrec_interface_columns[OVSREC_INTERFACE_N_COLUMNS]
Definition: vswitch-idl.c:11260
Definition: vswitch-idl.h:831
void ovsdb_idl_txn_verify(const struct ovsdb_idl_row *, const struct ovsdb_idl_column *)
Definition: ovsdb-idl.c:2168
void ovsrec_interface_verify_mac_in_use ( const struct ovsrec_interface row)
9218 {
9219  ovs_assert(inited);
9221 }
#define ovs_assert(CONDITION)
Definition: util.h:73
static bool inited
Definition: vswitch-idl.c:18
Definition: vswitch-idl.h:832
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:695
struct ovsdb_idl_column ovsrec_interface_columns[OVSREC_INTERFACE_N_COLUMNS]
Definition: vswitch-idl.c:11260
void ovsdb_idl_txn_verify(const struct ovsdb_idl_row *, const struct ovsdb_idl_column *)
Definition: ovsdb-idl.c:2168
void ovsrec_interface_verify_mtu ( const struct ovsrec_interface row)
9250 {
9251  ovs_assert(inited);
9253 }
#define ovs_assert(CONDITION)
Definition: util.h:73
static bool inited
Definition: vswitch-idl.c:18
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:695
struct ovsdb_idl_column ovsrec_interface_columns[OVSREC_INTERFACE_N_COLUMNS]
Definition: vswitch-idl.c:11260
void ovsdb_idl_txn_verify(const struct ovsdb_idl_row *, const struct ovsdb_idl_column *)
Definition: ovsdb-idl.c:2168
Definition: vswitch-idl.h:833
void ovsrec_interface_verify_name ( const struct ovsrec_interface row)
9282 {
9283  ovs_assert(inited);
9285 }
#define ovs_assert(CONDITION)
Definition: util.h:73
static bool inited
Definition: vswitch-idl.c:18
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:695
struct ovsdb_idl_column ovsrec_interface_columns[OVSREC_INTERFACE_N_COLUMNS]
Definition: vswitch-idl.c:11260
Definition: vswitch-idl.h:834
void ovsdb_idl_txn_verify(const struct ovsdb_idl_row *, const struct ovsdb_idl_column *)
Definition: ovsdb-idl.c:2168
void ovsrec_interface_verify_ofport ( const struct ovsrec_interface row)
9314 {
9315  ovs_assert(inited);
9317 }
Definition: vswitch-idl.h:835
#define ovs_assert(CONDITION)
Definition: util.h:73
static bool inited
Definition: vswitch-idl.c:18
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:695
struct ovsdb_idl_column ovsrec_interface_columns[OVSREC_INTERFACE_N_COLUMNS]
Definition: vswitch-idl.c:11260
void ovsdb_idl_txn_verify(const struct ovsdb_idl_row *, const struct ovsdb_idl_column *)
Definition: ovsdb-idl.c:2168
void ovsrec_interface_verify_ofport_request ( const struct ovsrec_interface row)
9346 {
9347  ovs_assert(inited);
9349 }
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: vswitch-idl.h:836
static bool inited
Definition: vswitch-idl.c:18
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:695
struct ovsdb_idl_column ovsrec_interface_columns[OVSREC_INTERFACE_N_COLUMNS]
Definition: vswitch-idl.c:11260
void ovsdb_idl_txn_verify(const struct ovsdb_idl_row *, const struct ovsdb_idl_column *)
Definition: ovsdb-idl.c:2168
void ovsrec_interface_verify_options ( const struct ovsrec_interface row)
9378 {
9379  ovs_assert(inited);
9381 }
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: vswitch-idl.h:837
static bool inited
Definition: vswitch-idl.c:18
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:695
struct ovsdb_idl_column ovsrec_interface_columns[OVSREC_INTERFACE_N_COLUMNS]
Definition: vswitch-idl.c:11260
void ovsdb_idl_txn_verify(const struct ovsdb_idl_row *, const struct ovsdb_idl_column *)
Definition: ovsdb-idl.c:2168
void ovsrec_interface_verify_other_config ( const struct ovsrec_interface row)
9410 {
9411  ovs_assert(inited);
9413 }
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: vswitch-idl.h:838
static bool inited
Definition: vswitch-idl.c:18
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:695
struct ovsdb_idl_column ovsrec_interface_columns[OVSREC_INTERFACE_N_COLUMNS]
Definition: vswitch-idl.c:11260
void ovsdb_idl_txn_verify(const struct ovsdb_idl_row *, const struct ovsdb_idl_column *)
Definition: ovsdb-idl.c:2168
void ovsrec_interface_verify_statistics ( const struct ovsrec_interface row)
9442 {
9443  ovs_assert(inited);
9445 }
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: vswitch-idl.h:839
static bool inited
Definition: vswitch-idl.c:18
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:695
struct ovsdb_idl_column ovsrec_interface_columns[OVSREC_INTERFACE_N_COLUMNS]
Definition: vswitch-idl.c:11260
void ovsdb_idl_txn_verify(const struct ovsdb_idl_row *, const struct ovsdb_idl_column *)
Definition: ovsdb-idl.c:2168
void ovsrec_interface_verify_status ( const struct ovsrec_interface row)
9474 {
9475  ovs_assert(inited);
9477 }
#define ovs_assert(CONDITION)
Definition: util.h:73
static bool inited
Definition: vswitch-idl.c:18
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:695
Definition: vswitch-idl.h:840
struct ovsdb_idl_column ovsrec_interface_columns[OVSREC_INTERFACE_N_COLUMNS]
Definition: vswitch-idl.c:11260
void ovsdb_idl_txn_verify(const struct ovsdb_idl_row *, const struct ovsdb_idl_column *)
Definition: ovsdb-idl.c:2168
void ovsrec_interface_verify_type ( const struct ovsrec_interface row)
9506 {
9507  ovs_assert(inited);
9509 }
#define ovs_assert(CONDITION)
Definition: util.h:73
static bool inited
Definition: vswitch-idl.c:18
Definition: vswitch-idl.h:841
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:695
struct ovsdb_idl_column ovsrec_interface_columns[OVSREC_INTERFACE_N_COLUMNS]
Definition: vswitch-idl.c:11260
void ovsdb_idl_txn_verify(const struct ovsdb_idl_row *, const struct ovsdb_idl_column *)
Definition: ovsdb-idl.c:2168
static struct ovsrec_ipfix* ovsrec_ipfix_cast ( const struct ovsdb_idl_row row)
static
53 {
54  return row ? CONTAINER_OF(row, struct ovsrec_ipfix, header_) : NULL;
55 }
#define CONTAINER_OF(POINTER, STRUCT, MEMBER)
Definition: util.h:207
Definition: vswitch-idl.h:592
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:695
static void ovsrec_ipfix_columns_init ( void  )
static
7537 {
7538  struct ovsdb_idl_column *c;
7539 
7540  /* Initialize ovsrec_ipfix_col_cache_active_timeout. */
7542  c->name = "cache_active_timeout";
7544  c->type.key.u.integer.min = INT64_C(0);
7545  c->type.key.u.integer.max = INT64_C(4200);
7547  c->type.n_min = 0;
7548  c->type.n_max = 1;
7549  c->mutable = true;
7552 
7553  /* Initialize ovsrec_ipfix_col_cache_max_flows. */
7555  c->name = "cache_max_flows";
7557  c->type.key.u.integer.min = INT64_C(0);
7558  c->type.key.u.integer.max = INT64_C(4294967295);
7560  c->type.n_min = 0;
7561  c->type.n_max = 1;
7562  c->mutable = true;
7565 
7566  /* Initialize ovsrec_ipfix_col_external_ids. */
7568  c->name = "external_ids";
7570  c->type.key.u.string.minLen = 0;
7572  c->type.value.u.string.minLen = 0;
7573  c->type.n_min = 0;
7574  c->type.n_max = UINT_MAX;
7575  c->mutable = true;
7578 
7579  /* Initialize ovsrec_ipfix_col_obs_domain_id. */
7581  c->name = "obs_domain_id";
7583  c->type.key.u.integer.min = INT64_C(0);
7584  c->type.key.u.integer.max = INT64_C(4294967295);
7586  c->type.n_min = 0;
7587  c->type.n_max = 1;
7588  c->mutable = true;
7591 
7592  /* Initialize ovsrec_ipfix_col_obs_point_id. */
7594  c->name = "obs_point_id";
7596  c->type.key.u.integer.min = INT64_C(0);
7597  c->type.key.u.integer.max = INT64_C(4294967295);
7599  c->type.n_min = 0;
7600  c->type.n_max = 1;
7601  c->mutable = true;
7604 
7605  /* Initialize ovsrec_ipfix_col_other_config. */
7607  c->name = "other_config";
7609  c->type.key.u.string.minLen = 0;
7611  c->type.value.u.string.minLen = 0;
7612  c->type.n_min = 0;
7613  c->type.n_max = UINT_MAX;
7614  c->mutable = true;
7617 
7618  /* Initialize ovsrec_ipfix_col_sampling. */
7620  c->name = "sampling";
7622  c->type.key.u.integer.min = INT64_C(1);
7623  c->type.key.u.integer.max = INT64_C(4294967295);
7625  c->type.n_min = 0;
7626  c->type.n_max = 1;
7627  c->mutable = true;
7630 
7631  /* Initialize ovsrec_ipfix_col_targets. */
7633  c->name = "targets";
7635  c->type.key.u.string.minLen = 0;
7637  c->type.n_min = 0;
7638  c->type.n_max = UINT_MAX;
7639  c->mutable = true;
7642 }
void(* unparse)(struct ovsdb_idl_row *)
Definition: ovsdb-idl-provider.h:46
Definition: ovsdb-idl-provider.h:41
static void ovsrec_ipfix_parse_cache_active_timeout(struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
Definition: vswitch-idl.c:6546
#define ovsrec_ipfix_col_obs_domain_id
Definition: vswitch-idl.h:641
#define ovsrec_ipfix_col_sampling
Definition: vswitch-idl.h:644
static void ovsrec_ipfix_unparse_other_config(struct ovsdb_idl_row *row_)
Definition: vswitch-idl.c:6734
struct ovsdb_base_type::@145::ovsdb_string_constraints string
#define ovsrec_ipfix_col_targets
Definition: vswitch-idl.h:645
static void ovsrec_ipfix_parse_other_config(struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
Definition: vswitch-idl.c:6637
void ovsdb_base_type_init(struct ovsdb_base_type *base, enum ovsdb_atomic_type type)
Definition: ovsdb-types.c:117
union ovsdb_base_type::@145 u
unsigned int n_min
Definition: ovsdb-types.h:136
struct ovsdb_base_type key
Definition: ovsdb-types.h:134
void(* parse)(struct ovsdb_idl_row *, const struct ovsdb_datum *)
Definition: ovsdb-idl-provider.h:45
unsigned int n_max
Definition: ovsdb-types.h:137
Definition: ovsdb-types.h:33
struct ovsdb_base_type value
Definition: ovsdb-types.h:135
char * name
Definition: ovsdb-idl-provider.h:42
#define ovsrec_ipfix_col_cache_active_timeout
Definition: vswitch-idl.h:639
static void ovsrec_ipfix_parse_sampling(struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
Definition: vswitch-idl.c:6652
Definition: ovsdb-types.h:30
#define ovsrec_ipfix_col_cache_max_flows
Definition: vswitch-idl.h:640
#define ovsrec_ipfix_col_external_ids
Definition: vswitch-idl.h:643
static void ovsrec_ipfix_parse_obs_domain_id(struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
Definition: vswitch-idl.c:6599
static void ovsrec_ipfix_unparse_cache_max_flows(struct ovsdb_idl_row *row_)
Definition: vswitch-idl.c:6698
struct ovsdb_type type
Definition: ovsdb-idl-provider.h:43
#define ovsrec_ipfix_col_other_config
Definition: vswitch-idl.h:642
bool mutable
Definition: ovsdb-idl-provider.h:44
static void ovsrec_ipfix_unparse_obs_point_id(struct ovsdb_idl_row *row_)
Definition: vswitch-idl.c:6725
static void ovsrec_ipfix_parse_targets(struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
Definition: vswitch-idl.c:6671
Definition: ovsdb-types.h:29
static void ovsrec_ipfix_parse_obs_point_id(struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
Definition: vswitch-idl.c:6618
struct ovsdb_base_type::@145::ovsdb_integer_constraints integer
static void ovsrec_ipfix_unparse_sampling(struct ovsdb_idl_row *row_)
Definition: vswitch-idl.c:6743
static void ovsrec_ipfix_unparse_cache_active_timeout(struct ovsdb_idl_row *row_)
Definition: vswitch-idl.c:6689
static void ovsrec_ipfix_parse_cache_max_flows(struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
Definition: vswitch-idl.c:6565
static void ovsrec_ipfix_unparse_obs_domain_id(struct ovsdb_idl_row *row_)
Definition: vswitch-idl.c:6716
static void ovsrec_ipfix_unparse_external_ids(struct ovsdb_idl_row *row_)
Definition: vswitch-idl.c:6707
static void ovsrec_ipfix_parse_external_ids(struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
Definition: vswitch-idl.c:6584
static void ovsrec_ipfix_unparse_targets(struct ovsdb_idl_row *row_)
Definition: vswitch-idl.c:6752
#define ovsrec_ipfix_col_obs_point_id
Definition: vswitch-idl.h:638
void ovsrec_ipfix_delete ( const struct ovsrec_ipfix row)
6809 {
6811 }
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:593
void ovsdb_idl_txn_delete(const struct ovsdb_idl_row *row_)
Definition: ovsdb-idl.c:2208
const struct ovsrec_ipfix* ovsrec_ipfix_first ( const struct ovsdb_idl idl)
6791 {
6793 }
Definition: vswitch-idl.h:1919
struct ovsdb_idl_table_class ovsrec_table_classes[OVSREC_N_TABLES]
Definition: vswitch-idl.c:21482
static struct ovsrec_ipfix * ovsrec_ipfix_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:52
const struct ovsdb_idl_row * ovsdb_idl_first_row(const struct ovsdb_idl *idl, const struct ovsdb_idl_table_class *table_class)
Definition: ovsdb-idl.c:1290
const struct ovsdb_datum* ovsrec_ipfix_get_cache_active_timeout ( const struct ovsrec_ipfix row,
enum ovsdb_atomic_type key_type  OVS_UNUSED 
)
7104 {
7105  ovs_assert(key_type == OVSDB_TYPE_INTEGER);
7107 }
#define ovs_assert(CONDITION)
Definition: util.h:73
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:593
#define ovsrec_ipfix_col_cache_active_timeout
Definition: vswitch-idl.h:639
Definition: ovsdb-types.h:30
const struct ovsdb_datum * ovsdb_idl_read(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column)
Definition: ovsdb-idl.c:1320
const struct ovsdb_datum* ovsrec_ipfix_get_cache_max_flows ( const struct ovsrec_ipfix row,
enum ovsdb_atomic_type key_type  OVS_UNUSED 
)
7131 {
7132  ovs_assert(key_type == OVSDB_TYPE_INTEGER);
7134 }
#define ovs_assert(CONDITION)
Definition: util.h:73
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:593
Definition: ovsdb-types.h:30
#define ovsrec_ipfix_col_cache_max_flows
Definition: vswitch-idl.h:640
const struct ovsdb_datum * ovsdb_idl_read(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column)
Definition: ovsdb-idl.c:1320
const struct ovsdb_datum* ovsrec_ipfix_get_external_ids ( const struct ovsrec_ipfix row,
enum ovsdb_atomic_type key_type  OVS_UNUSED,
enum ovsdb_atomic_type value_type  OVS_UNUSED 
)
7160 {
7161  ovs_assert(key_type == OVSDB_TYPE_STRING);
7162  ovs_assert(value_type == OVSDB_TYPE_STRING);
7164 }
#define ovs_assert(CONDITION)
Definition: util.h:73
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:593
Definition: ovsdb-types.h:33
#define ovsrec_ipfix_col_external_ids
Definition: vswitch-idl.h:643
const struct ovsdb_datum * ovsdb_idl_read(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column)
Definition: ovsdb-idl.c:1320
const struct ovsrec_ipfix* ovsrec_ipfix_get_for_uuid ( const struct ovsdb_idl idl,
const struct uuid uuid 
)
6779 {
6781 }
const struct ovsdb_idl_row * ovsdb_idl_get_row_for_uuid(const struct ovsdb_idl *idl, const struct ovsdb_idl_table_class *tc, const struct uuid *uuid)
Definition: ovsdb-idl.c:1262
Definition: vswitch-idl.h:1919
struct ovsdb_idl_table_class ovsrec_table_classes[OVSREC_N_TABLES]
Definition: vswitch-idl.c:21482
static struct ovsrec_ipfix * ovsrec_ipfix_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:52
const struct ovsdb_datum* ovsrec_ipfix_get_obs_domain_id ( const struct ovsrec_ipfix row,
enum ovsdb_atomic_type key_type  OVS_UNUSED 
)
7188 {
7189  ovs_assert(key_type == OVSDB_TYPE_INTEGER);
7191 }
#define ovsrec_ipfix_col_obs_domain_id
Definition: vswitch-idl.h:641
#define ovs_assert(CONDITION)
Definition: util.h:73
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:593
Definition: ovsdb-types.h:30
const struct ovsdb_datum * ovsdb_idl_read(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column)
Definition: ovsdb-idl.c:1320
const struct ovsdb_datum* ovsrec_ipfix_get_obs_point_id ( const struct ovsrec_ipfix row,
enum ovsdb_atomic_type key_type  OVS_UNUSED 
)
7215 {
7216  ovs_assert(key_type == OVSDB_TYPE_INTEGER);
7218 }
#define ovs_assert(CONDITION)
Definition: util.h:73
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:593
Definition: ovsdb-types.h:30
const struct ovsdb_datum * ovsdb_idl_read(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column)
Definition: ovsdb-idl.c:1320
#define ovsrec_ipfix_col_obs_point_id
Definition: vswitch-idl.h:638
const struct ovsdb_datum* ovsrec_ipfix_get_other_config ( const struct ovsrec_ipfix row,
enum ovsdb_atomic_type key_type  OVS_UNUSED,
enum ovsdb_atomic_type value_type  OVS_UNUSED 
)
7244 {
7245  ovs_assert(key_type == OVSDB_TYPE_STRING);
7246  ovs_assert(value_type == OVSDB_TYPE_STRING);
7248 }
#define ovs_assert(CONDITION)
Definition: util.h:73
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:593
Definition: ovsdb-types.h:33
#define ovsrec_ipfix_col_other_config
Definition: vswitch-idl.h:642
const struct ovsdb_datum * ovsdb_idl_read(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column)
Definition: ovsdb-idl.c:1320
const struct ovsdb_datum* ovsrec_ipfix_get_sampling ( const struct ovsrec_ipfix row,
enum ovsdb_atomic_type key_type  OVS_UNUSED 
)
7272 {
7273  ovs_assert(key_type == OVSDB_TYPE_INTEGER);
7275 }
#define ovsrec_ipfix_col_sampling
Definition: vswitch-idl.h:644
#define ovs_assert(CONDITION)
Definition: util.h:73
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:593
Definition: ovsdb-types.h:30
const struct ovsdb_datum * ovsdb_idl_read(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column)
Definition: ovsdb-idl.c:1320
const struct ovsdb_datum* ovsrec_ipfix_get_targets ( const struct ovsrec_ipfix row,
enum ovsdb_atomic_type key_type  OVS_UNUSED 
)
7299 {
7300  ovs_assert(key_type == OVSDB_TYPE_STRING);
7302 }
#define ovsrec_ipfix_col_targets
Definition: vswitch-idl.h:645
#define ovs_assert(CONDITION)
Definition: util.h:73
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:593
Definition: ovsdb-types.h:33
const struct ovsdb_datum * ovsdb_idl_read(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column)
Definition: ovsdb-idl.c:1320
void ovsrec_ipfix_init ( struct ovsrec_ipfix row)
6769 {
6770  memset(row, 0, sizeof *row);
6771  smap_init(&row->external_ids);
6772  smap_init(&row->other_config);
6773 }
void smap_init(struct smap *smap)
Definition: smap.c:33
struct smap external_ids
Definition: vswitch-idl.h:604
struct smap other_config
Definition: vswitch-idl.h:615
static void ovsrec_ipfix_init__ ( struct ovsdb_idl_row row)
static
6762 {
6764 }
void ovsrec_ipfix_init(struct ovsrec_ipfix *row)
Definition: vswitch-idl.c:6768
static struct ovsrec_ipfix * ovsrec_ipfix_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:52
struct ovsrec_ipfix* ovsrec_ipfix_insert ( struct ovsdb_idl_txn txn)
6822 {
6824 }
Definition: vswitch-idl.h:1919
struct ovsdb_idl_table_class ovsrec_table_classes[OVSREC_N_TABLES]
Definition: vswitch-idl.c:21482
static struct ovsrec_ipfix * ovsrec_ipfix_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:52
const struct ovsdb_idl_row * ovsdb_idl_txn_insert(struct ovsdb_idl_txn *txn, const struct ovsdb_idl_table_class *class, const struct uuid *uuid)
Definition: ovsdb-idl.c:2247
const struct ovsrec_ipfix* ovsrec_ipfix_next ( const struct ovsrec_ipfix row)
6799 {
6801 }
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:593
static struct ovsrec_ipfix * ovsrec_ipfix_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:52
const struct ovsdb_idl_row * ovsdb_idl_next_row(const struct ovsdb_idl_row *row)
Definition: ovsdb-idl.c:1301
static void ovsrec_ipfix_parse_cache_active_timeout ( struct ovsdb_idl_row row_,
const struct ovsdb_datum datum 
)
static
6547 {
6548  struct ovsrec_ipfix *row = ovsrec_ipfix_cast(row_);
6549  size_t n = MIN(1, datum->n);
6550  size_t i;
6551 
6552  ovs_assert(inited);
6553  row->cache_active_timeout = NULL;
6554  row->n_cache_active_timeout = 0;
6555  for (i = 0; i < n; i++) {
6556  if (!row->n_cache_active_timeout) {
6557  row->cache_active_timeout = xmalloc(n * sizeof *row->cache_active_timeout);
6558  }
6560  row->n_cache_active_timeout++;
6561  }
6562 }
int64_t integer
Definition: ovsdb-data.h:30
#define ovs_assert(CONDITION)
Definition: util.h:73
union ovsdb_atom * keys
Definition: ovsdb-data.h:127
void * xmalloc(size_t size)
Definition: util.c:110
size_t n_cache_active_timeout
Definition: vswitch-idl.h:597
static struct ovsrec_ipfix * ovsrec_ipfix_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:52
static bool inited
Definition: vswitch-idl.c:18
unsigned int n
Definition: ovsdb-data.h:126
#define MIN(_a, _b)
Definition: Util.h:68
Definition: vswitch-idl.h:592
int64_t * cache_active_timeout
Definition: vswitch-idl.h:596
static void ovsrec_ipfix_parse_cache_max_flows ( struct ovsdb_idl_row row_,
const struct ovsdb_datum datum 
)
static
6566 {
6567  struct ovsrec_ipfix *row = ovsrec_ipfix_cast(row_);
6568  size_t n = MIN(1, datum->n);
6569  size_t i;
6570 
6571  ovs_assert(inited);
6572  row->cache_max_flows = NULL;
6573  row->n_cache_max_flows = 0;
6574  for (i = 0; i < n; i++) {
6575  if (!row->n_cache_max_flows) {
6576  row->cache_max_flows = xmalloc(n * sizeof *row->cache_max_flows);
6577  }
6578  row->cache_max_flows[row->n_cache_max_flows] = datum->keys[i].integer;
6579  row->n_cache_max_flows++;
6580  }
6581 }
int64_t integer
Definition: ovsdb-data.h:30
#define ovs_assert(CONDITION)
Definition: util.h:73
union ovsdb_atom * keys
Definition: ovsdb-data.h:127
void * xmalloc(size_t size)
Definition: util.c:110
int64_t * cache_max_flows
Definition: vswitch-idl.h:600
static struct ovsrec_ipfix * ovsrec_ipfix_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:52
size_t n_cache_max_flows
Definition: vswitch-idl.h:601
static bool inited
Definition: vswitch-idl.c:18
unsigned int n
Definition: ovsdb-data.h:126
#define MIN(_a, _b)
Definition: Util.h:68
Definition: vswitch-idl.h:592
static void ovsrec_ipfix_parse_external_ids ( struct ovsdb_idl_row row_,
const struct ovsdb_datum datum 
)
static
6585 {
6586  struct ovsrec_ipfix *row = ovsrec_ipfix_cast(row_);
6587  size_t i;
6588 
6589  ovs_assert(inited);
6590  smap_init(&row->external_ids);
6591  for (i = 0; i < datum->n; i++) {
6592  smap_add(&row->external_ids,
6593  datum->keys[i].string,
6594  datum->values[i].string);
6595  }
6596 }
#define ovs_assert(CONDITION)
Definition: util.h:73
void smap_init(struct smap *smap)
Definition: smap.c:33
char * string
Definition: ovsdb-data.h:33
struct smap_node * smap_add(struct smap *smap, const char *key, const char *value)
Definition: smap.c:50
union ovsdb_atom * keys
Definition: ovsdb-data.h:127
union ovsdb_atom * values
Definition: ovsdb-data.h:128
struct smap external_ids
Definition: vswitch-idl.h:604
static struct ovsrec_ipfix * ovsrec_ipfix_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:52
static bool inited
Definition: vswitch-idl.c:18
unsigned int n
Definition: ovsdb-data.h:126
Definition: vswitch-idl.h:592
static void ovsrec_ipfix_parse_obs_domain_id ( struct ovsdb_idl_row row_,
const struct ovsdb_datum datum 
)
static
6600 {
6601  struct ovsrec_ipfix *row = ovsrec_ipfix_cast(row_);
6602  size_t n = MIN(1, datum->n);
6603  size_t i;
6604 
6605  ovs_assert(inited);
6606  row->obs_domain_id = NULL;
6607  row->n_obs_domain_id = 0;
6608  for (i = 0; i < n; i++) {
6609  if (!row->n_obs_domain_id) {
6610  row->obs_domain_id = xmalloc(n * sizeof *row->obs_domain_id);
6611  }
6612  row->obs_domain_id[row->n_obs_domain_id] = datum->keys[i].integer;
6613  row->n_obs_domain_id++;
6614  }
6615 }
int64_t integer
Definition: ovsdb-data.h:30
#define ovs_assert(CONDITION)
Definition: util.h:73
union ovsdb_atom * keys
Definition: ovsdb-data.h:127
void * xmalloc(size_t size)
Definition: util.c:110
static struct ovsrec_ipfix * ovsrec_ipfix_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:52
static bool inited
Definition: vswitch-idl.c:18
unsigned int n
Definition: ovsdb-data.h:126
int64_t * obs_domain_id
Definition: vswitch-idl.h:607
#define MIN(_a, _b)
Definition: Util.h:68
Definition: vswitch-idl.h:592
size_t n_obs_domain_id
Definition: vswitch-idl.h:608
static void ovsrec_ipfix_parse_obs_point_id ( struct ovsdb_idl_row row_,
const struct ovsdb_datum datum 
)
static
6619 {
6620  struct ovsrec_ipfix *row = ovsrec_ipfix_cast(row_);
6621  size_t n = MIN(1, datum->n);
6622  size_t i;
6623 
6624  ovs_assert(inited);
6625  row->obs_point_id = NULL;
6626  row->n_obs_point_id = 0;
6627  for (i = 0; i < n; i++) {
6628  if (!row->n_obs_point_id) {
6629  row->obs_point_id = xmalloc(n * sizeof *row->obs_point_id);
6630  }
6631  row->obs_point_id[row->n_obs_point_id] = datum->keys[i].integer;
6632  row->n_obs_point_id++;
6633  }
6634 }
int64_t integer
Definition: ovsdb-data.h:30
#define ovs_assert(CONDITION)
Definition: util.h:73
union ovsdb_atom * keys
Definition: ovsdb-data.h:127
void * xmalloc(size_t size)
Definition: util.c:110
static struct ovsrec_ipfix * ovsrec_ipfix_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:52
static bool inited
Definition: vswitch-idl.c:18
unsigned int n
Definition: ovsdb-data.h:126
int64_t * obs_point_id
Definition: vswitch-idl.h:611
#define MIN(_a, _b)
Definition: Util.h:68
Definition: vswitch-idl.h:592
size_t n_obs_point_id
Definition: vswitch-idl.h:612
static void ovsrec_ipfix_parse_other_config ( struct ovsdb_idl_row row_,
const struct ovsdb_datum datum 
)
static
6638 {
6639  struct ovsrec_ipfix *row = ovsrec_ipfix_cast(row_);
6640  size_t i;
6641 
6642  ovs_assert(inited);
6643  smap_init(&row->other_config);
6644  for (i = 0; i < datum->n; i++) {
6645  smap_add(&row->other_config,
6646  datum->keys[i].string,
6647  datum->values[i].string);
6648  }
6649 }
#define ovs_assert(CONDITION)
Definition: util.h:73
void smap_init(struct smap *smap)
Definition: smap.c:33
char * string
Definition: ovsdb-data.h:33
struct smap_node * smap_add(struct smap *smap, const char *key, const char *value)
Definition: smap.c:50
union ovsdb_atom * keys
Definition: ovsdb-data.h:127
union ovsdb_atom * values
Definition: ovsdb-data.h:128
static struct ovsrec_ipfix * ovsrec_ipfix_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:52
static bool inited
Definition: vswitch-idl.c:18
unsigned int n
Definition: ovsdb-data.h:126
Definition: vswitch-idl.h:592
struct smap other_config
Definition: vswitch-idl.h:615
static void ovsrec_ipfix_parse_sampling ( struct ovsdb_idl_row row_,
const struct ovsdb_datum datum 
)
static
6653 {
6654  struct ovsrec_ipfix *row = ovsrec_ipfix_cast(row_);
6655  size_t n = MIN(1, datum->n);
6656  size_t i;
6657 
6658  ovs_assert(inited);
6659  row->sampling = NULL;
6660  row->n_sampling = 0;
6661  for (i = 0; i < n; i++) {
6662  if (!row->n_sampling) {
6663  row->sampling = xmalloc(n * sizeof *row->sampling);
6664  }
6665  row->sampling[row->n_sampling] = datum->keys[i].integer;
6666  row->n_sampling++;
6667  }
6668 }
int64_t integer
Definition: ovsdb-data.h:30
#define ovs_assert(CONDITION)
Definition: util.h:73
union ovsdb_atom * keys
Definition: ovsdb-data.h:127
void * xmalloc(size_t size)
Definition: util.c:110
static struct ovsrec_ipfix * ovsrec_ipfix_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:52
static bool inited
Definition: vswitch-idl.c:18
unsigned int n
Definition: ovsdb-data.h:126
int64_t * sampling
Definition: vswitch-idl.h:618
#define MIN(_a, _b)
Definition: Util.h:68
Definition: vswitch-idl.h:592
size_t n_sampling
Definition: vswitch-idl.h:619
static void ovsrec_ipfix_parse_targets ( struct ovsdb_idl_row row_,
const struct ovsdb_datum datum 
)
static
6672 {
6673  struct ovsrec_ipfix *row = ovsrec_ipfix_cast(row_);
6674  size_t i;
6675 
6676  ovs_assert(inited);
6677  row->targets = NULL;
6678  row->n_targets = 0;
6679  for (i = 0; i < datum->n; i++) {
6680  if (!row->n_targets) {
6681  row->targets = xmalloc(datum->n * sizeof *row->targets);
6682  }
6683  row->targets[row->n_targets] = datum->keys[i].string;
6684  row->n_targets++;
6685  }
6686 }
#define ovs_assert(CONDITION)
Definition: util.h:73
char * string
Definition: ovsdb-data.h:33
union ovsdb_atom * keys
Definition: ovsdb-data.h:127
void * xmalloc(size_t size)
Definition: util.c:110
static struct ovsrec_ipfix * ovsrec_ipfix_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:52
static bool inited
Definition: vswitch-idl.c:18
char ** targets
Definition: vswitch-idl.h:622
unsigned int n
Definition: ovsdb-data.h:126
Definition: vswitch-idl.h:592
size_t n_targets
Definition: vswitch-idl.h:623
void ovsrec_ipfix_set_cache_active_timeout ( const struct ovsrec_ipfix row,
const int64_t cache_active_timeout,
size_t  n_cache_active_timeout 
)
7315 {
7316  struct ovsdb_datum datum;
7317  union ovsdb_atom key;
7318 
7319  ovs_assert(inited);
7320  if (n_cache_active_timeout) {
7321  datum.n = 1;
7322  datum.keys = &key;
7323  key.integer = *cache_active_timeout;
7324  } else {
7325  datum.n = 0;
7326  datum.keys = NULL;
7327  }
7328  datum.values = NULL;
7330 }
Definition: ovsdb-data.h:125
#define ovs_assert(CONDITION)
Definition: util.h:73
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:593
Definition: ovsdb-data.h:29
Definition: vswitch-idl.h:627
static bool inited
Definition: vswitch-idl.c:18
struct ovsdb_idl_column ovsrec_ipfix_columns[OVSREC_IPFIX_N_COLUMNS]
Definition: vswitch-idl.c:7533
static struct aes128 key
Definition: uuid.c:34
void ovsdb_idl_txn_write_clone(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column, const struct ovsdb_datum *datum)
Definition: ovsdb-idl.c:2131
void ovsrec_ipfix_set_cache_max_flows ( const struct ovsrec_ipfix row,
const int64_t cache_max_flows,
size_t  n_cache_max_flows 
)
7343 {
7344  struct ovsdb_datum datum;
7345  union ovsdb_atom key;
7346 
7347  ovs_assert(inited);
7348  if (n_cache_max_flows) {
7349  datum.n = 1;
7350  datum.keys = &key;
7351  key.integer = *cache_max_flows;
7352  } else {
7353  datum.n = 0;
7354  datum.keys = NULL;
7355  }
7356  datum.values = NULL;
7358 }
Definition: ovsdb-data.h:125
#define ovs_assert(CONDITION)
Definition: util.h:73
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:593
Definition: ovsdb-data.h:29
Definition: vswitch-idl.h:628
static bool inited
Definition: vswitch-idl.c:18
struct ovsdb_idl_column ovsrec_ipfix_columns[OVSREC_IPFIX_N_COLUMNS]
Definition: vswitch-idl.c:7533
static struct aes128 key
Definition: uuid.c:34
void ovsdb_idl_txn_write_clone(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column, const struct ovsdb_datum *datum)
Definition: ovsdb-idl.c:2131
void ovsrec_ipfix_set_external_ids ( const struct ovsrec_ipfix row,
const struct smap external_ids 
)
7366 {
7367  struct ovsdb_datum datum;
7368 
7369  ovs_assert(inited);
7370  if (external_ids) {
7371  struct smap_node *node;
7372  size_t i;
7373 
7374  datum.n = smap_count(external_ids);
7375  datum.keys = xmalloc(datum.n * sizeof *datum.keys);
7376  datum.values = xmalloc(datum.n * sizeof *datum.values);
7377 
7378  i = 0;
7379  SMAP_FOR_EACH (node, external_ids) {
7380  datum.keys[i].string = xstrdup(node->key);
7381  datum.values[i].string = xstrdup(node->value);
7382  i++;
7383  }
7385  } else {
7386  ovsdb_datum_init_empty(&datum);
7387  }
7390  &datum);
7391 }
char * value
Definition: smap.h:31
Definition: ovsdb-data.h:125
#define ovs_assert(CONDITION)
Definition: util.h:73
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:593
Definition: ovsdb-types.h:33
size_t ovsdb_datum_sort_unique(struct ovsdb_datum *datum, enum ovsdb_atomic_type key_type, enum ovsdb_atomic_type value_type)
Definition: ovsdb-data.c:1089
#define SMAP_FOR_EACH(SMAP_NODE, SMAP)
Definition: smap.h:36
void * xmalloc(size_t size)
Definition: util.c:110
char * xstrdup(const char *s)
Definition: util.c:149
static bool inited
Definition: vswitch-idl.c:18
struct hmap_node node
Definition: smap.h:29
Definition: smap.h:28
struct ovsdb_idl_column ovsrec_ipfix_columns[OVSREC_IPFIX_N_COLUMNS]
Definition: vswitch-idl.c:7533
size_t smap_count(const struct smap *smap)
Definition: smap.c:238
void ovsdb_datum_init_empty(struct ovsdb_datum *datum)
Definition: ovsdb-data.c:835
Definition: vswitch-idl.h:629
void ovsdb_idl_txn_write(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column, struct ovsdb_datum *datum)
Definition: ovsdb-idl.c:2123
char * key
Definition: smap.h:30
void ovsrec_ipfix_set_obs_domain_id ( const struct ovsrec_ipfix row,
const int64_t obs_domain_id,
size_t  n_obs_domain_id 
)
7405 {
7406  struct ovsdb_datum datum;
7407  union ovsdb_atom key;
7408 
7409  ovs_assert(inited);
7410  if (n_obs_domain_id) {
7411  datum.n = 1;
7412  datum.keys = &key;
7413  key.integer = *obs_domain_id;
7414  } else {
7415  datum.n = 0;
7416  datum.keys = NULL;
7417  }
7418  datum.values = NULL;
7420 }
Definition: ovsdb-data.h:125
#define ovs_assert(CONDITION)
Definition: util.h:73
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:593
Definition: vswitch-idl.h:630
Definition: ovsdb-data.h:29
static bool inited
Definition: vswitch-idl.c:18
struct ovsdb_idl_column ovsrec_ipfix_columns[OVSREC_IPFIX_N_COLUMNS]
Definition: vswitch-idl.c:7533
static struct aes128 key
Definition: uuid.c:34
void ovsdb_idl_txn_write_clone(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column, const struct ovsdb_datum *datum)
Definition: ovsdb-idl.c:2131
void ovsrec_ipfix_set_obs_point_id ( const struct ovsrec_ipfix row,
const int64_t obs_point_id,
size_t  n_obs_point_id 
)
7433 {
7434  struct ovsdb_datum datum;
7435  union ovsdb_atom key;
7436 
7437  ovs_assert(inited);
7438  if (n_obs_point_id) {
7439  datum.n = 1;
7440  datum.keys = &key;
7441  key.integer = *obs_point_id;
7442  } else {
7443  datum.n = 0;
7444  datum.keys = NULL;
7445  }
7446  datum.values = NULL;
7448 }
Definition: ovsdb-data.h:125
#define ovs_assert(CONDITION)
Definition: util.h:73
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:593
Definition: ovsdb-data.h:29
static bool inited
Definition: vswitch-idl.c:18
Definition: vswitch-idl.h:631
struct ovsdb_idl_column ovsrec_ipfix_columns[OVSREC_IPFIX_N_COLUMNS]
Definition: vswitch-idl.c:7533
static struct aes128 key
Definition: uuid.c:34
void ovsdb_idl_txn_write_clone(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column, const struct ovsdb_datum *datum)
Definition: ovsdb-idl.c:2131
void ovsrec_ipfix_set_other_config ( const struct ovsrec_ipfix row,
const struct smap other_config 
)
7456 {
7457  struct ovsdb_datum datum;
7458 
7459  ovs_assert(inited);
7460  if (other_config) {
7461  struct smap_node *node;
7462  size_t i;
7463 
7464  datum.n = smap_count(other_config);
7465  datum.keys = xmalloc(datum.n * sizeof *datum.keys);
7466  datum.values = xmalloc(datum.n * sizeof *datum.values);
7467 
7468  i = 0;
7469  SMAP_FOR_EACH (node, other_config) {
7470  datum.keys[i].string = xstrdup(node->key);
7471  datum.values[i].string = xstrdup(node->value);
7472  i++;
7473  }
7475  } else {
7476  ovsdb_datum_init_empty(&datum);
7477  }
7480  &datum);
7481 }
char * value
Definition: smap.h:31
Definition: ovsdb-data.h:125
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: vswitch-idl.h:632
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:593
Definition: ovsdb-types.h:33
size_t ovsdb_datum_sort_unique(struct ovsdb_datum *datum, enum ovsdb_atomic_type key_type, enum ovsdb_atomic_type value_type)
Definition: ovsdb-data.c:1089
#define SMAP_FOR_EACH(SMAP_NODE, SMAP)
Definition: smap.h:36
void * xmalloc(size_t size)
Definition: util.c:110
char * xstrdup(const char *s)
Definition: util.c:149
static bool inited
Definition: vswitch-idl.c:18
struct hmap_node node
Definition: smap.h:29
Definition: smap.h:28
struct ovsdb_idl_column ovsrec_ipfix_columns[OVSREC_IPFIX_N_COLUMNS]
Definition: vswitch-idl.c:7533
size_t smap_count(const struct smap *smap)
Definition: smap.c:238
void ovsdb_datum_init_empty(struct ovsdb_datum *datum)
Definition: ovsdb-data.c:835
void ovsdb_idl_txn_write(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column, struct ovsdb_datum *datum)
Definition: ovsdb-idl.c:2123
char * key
Definition: smap.h:30
void ovsrec_ipfix_set_sampling ( const struct ovsrec_ipfix row,
const int64_t sampling,
size_t  n_sampling 
)
7495 {
7496  struct ovsdb_datum datum;
7497  union ovsdb_atom key;
7498 
7499  ovs_assert(inited);
7500  if (n_sampling) {
7501  datum.n = 1;
7502  datum.keys = &key;
7503  key.integer = *sampling;
7504  } else {
7505  datum.n = 0;
7506  datum.keys = NULL;
7507  }
7508  datum.values = NULL;
7510 }
Definition: ovsdb-data.h:125
#define ovs_assert(CONDITION)
Definition: util.h:73
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:593
Definition: ovsdb-data.h:29
Definition: vswitch-idl.h:633
static bool inited
Definition: vswitch-idl.c:18
struct ovsdb_idl_column ovsrec_ipfix_columns[OVSREC_IPFIX_N_COLUMNS]
Definition: vswitch-idl.c:7533
static struct aes128 key
Definition: uuid.c:34
void ovsdb_idl_txn_write_clone(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column, const struct ovsdb_datum *datum)
Definition: ovsdb-idl.c:2131
void ovsrec_ipfix_set_targets ( const struct ovsrec_ipfix row,
const char **  targets,
size_t  n_targets 
)
7518 {
7519  struct ovsdb_datum datum;
7520  size_t i;
7521 
7522  ovs_assert(inited);
7523  datum.n = n_targets;
7524  datum.keys = n_targets ? xmalloc(n_targets * sizeof *datum.keys) : NULL;
7525  datum.values = NULL;
7526  for (i = 0; i < n_targets; i++) {
7527  datum.keys[i].string = xstrdup(targets[i]);
7528  }
7531 }
Definition: ovsdb-data.h:125
#define ovs_assert(CONDITION)
Definition: util.h:73
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:593
Definition: ovsdb-types.h:33
size_t ovsdb_datum_sort_unique(struct ovsdb_datum *datum, enum ovsdb_atomic_type key_type, enum ovsdb_atomic_type value_type)
Definition: ovsdb-data.c:1089
void * xmalloc(size_t size)
Definition: util.c:110
char * xstrdup(const char *s)
Definition: util.c:149
static bool inited
Definition: vswitch-idl.c:18
Definition: ovsdb-types.h:29
struct ovsdb_idl_column ovsrec_ipfix_columns[OVSREC_IPFIX_N_COLUMNS]
Definition: vswitch-idl.c:7533
void ovsdb_idl_txn_write(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column, struct ovsdb_datum *datum)
Definition: ovsdb-idl.c:2123
Definition: vswitch-idl.h:634
static void ovsrec_ipfix_unparse_cache_active_timeout ( struct ovsdb_idl_row row_)
static
6690 {
6691  struct ovsrec_ipfix *row = ovsrec_ipfix_cast(row_);
6692 
6693  ovs_assert(inited);
6694  free(row->cache_active_timeout);
6695 }
#define ovs_assert(CONDITION)
Definition: util.h:73
static struct ovsrec_ipfix * ovsrec_ipfix_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:52
static bool inited
Definition: vswitch-idl.c:18
Definition: vswitch-idl.h:592
int64_t * cache_active_timeout
Definition: vswitch-idl.h:596
static void ovsrec_ipfix_unparse_cache_max_flows ( struct ovsdb_idl_row row_)
static
6699 {
6700  struct ovsrec_ipfix *row = ovsrec_ipfix_cast(row_);
6701 
6702  ovs_assert(inited);
6703  free(row->cache_max_flows);
6704 }
#define ovs_assert(CONDITION)
Definition: util.h:73
int64_t * cache_max_flows
Definition: vswitch-idl.h:600
static struct ovsrec_ipfix * ovsrec_ipfix_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:52
static bool inited
Definition: vswitch-idl.c:18
Definition: vswitch-idl.h:592
static void ovsrec_ipfix_unparse_external_ids ( struct ovsdb_idl_row row_)
static
6708 {
6709  struct ovsrec_ipfix *row = ovsrec_ipfix_cast(row_);
6710 
6711  ovs_assert(inited);
6712  smap_destroy(&row->external_ids);
6713 }
#define ovs_assert(CONDITION)
Definition: util.h:73
struct smap external_ids
Definition: vswitch-idl.h:604
static struct ovsrec_ipfix * ovsrec_ipfix_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:52
static bool inited
Definition: vswitch-idl.c:18
void smap_destroy(struct smap *smap)
Definition: smap.c:39
Definition: vswitch-idl.h:592
static void ovsrec_ipfix_unparse_obs_domain_id ( struct ovsdb_idl_row row_)
static
6717 {
6718  struct ovsrec_ipfix *row = ovsrec_ipfix_cast(row_);
6719 
6720  ovs_assert(inited);
6721  free(row->obs_domain_id);
6722 }
#define ovs_assert(CONDITION)
Definition: util.h:73
static struct ovsrec_ipfix * ovsrec_ipfix_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:52
static bool inited
Definition: vswitch-idl.c:18
int64_t * obs_domain_id
Definition: vswitch-idl.h:607
Definition: vswitch-idl.h:592
static void ovsrec_ipfix_unparse_obs_point_id ( struct ovsdb_idl_row row_)
static
6726 {
6727  struct ovsrec_ipfix *row = ovsrec_ipfix_cast(row_);
6728 
6729  ovs_assert(inited);
6730  free(row->obs_point_id);
6731 }
#define ovs_assert(CONDITION)
Definition: util.h:73
static struct ovsrec_ipfix * ovsrec_ipfix_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:52
static bool inited
Definition: vswitch-idl.c:18
int64_t * obs_point_id
Definition: vswitch-idl.h:611
Definition: vswitch-idl.h:592
static void ovsrec_ipfix_unparse_other_config ( struct ovsdb_idl_row row_)
static
6735 {
6736  struct ovsrec_ipfix *row = ovsrec_ipfix_cast(row_);
6737 
6738  ovs_assert(inited);
6739  smap_destroy(&row->other_config);
6740 }
#define ovs_assert(CONDITION)
Definition: util.h:73
static struct ovsrec_ipfix * ovsrec_ipfix_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:52
static bool inited
Definition: vswitch-idl.c:18
void smap_destroy(struct smap *smap)
Definition: smap.c:39
Definition: vswitch-idl.h:592
struct smap other_config
Definition: vswitch-idl.h:615
static void ovsrec_ipfix_unparse_sampling ( struct ovsdb_idl_row row_)
static
6744 {
6745  struct ovsrec_ipfix *row = ovsrec_ipfix_cast(row_);
6746 
6747  ovs_assert(inited);
6748  free(row->sampling);
6749 }
#define ovs_assert(CONDITION)
Definition: util.h:73
static struct ovsrec_ipfix * ovsrec_ipfix_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:52
static bool inited
Definition: vswitch-idl.c:18
int64_t * sampling
Definition: vswitch-idl.h:618
Definition: vswitch-idl.h:592
static void ovsrec_ipfix_unparse_targets ( struct ovsdb_idl_row row_)
static
6753 {
6754  struct ovsrec_ipfix *row = ovsrec_ipfix_cast(row_);
6755 
6756  ovs_assert(inited);
6757  free(row->targets);
6758 }
#define ovs_assert(CONDITION)
Definition: util.h:73
static struct ovsrec_ipfix * ovsrec_ipfix_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:52
static bool inited
Definition: vswitch-idl.c:18
char ** targets
Definition: vswitch-idl.h:622
Definition: vswitch-idl.h:592
void ovsrec_ipfix_verify_cache_active_timeout ( const struct ovsrec_ipfix row)
6853 {
6854  ovs_assert(inited);
6856 }
#define ovs_assert(CONDITION)
Definition: util.h:73
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:593
Definition: vswitch-idl.h:627
static bool inited
Definition: vswitch-idl.c:18
struct ovsdb_idl_column ovsrec_ipfix_columns[OVSREC_IPFIX_N_COLUMNS]
Definition: vswitch-idl.c:7533
void ovsdb_idl_txn_verify(const struct ovsdb_idl_row *, const struct ovsdb_idl_column *)
Definition: ovsdb-idl.c:2168
void ovsrec_ipfix_verify_cache_max_flows ( const struct ovsrec_ipfix row)
6885 {
6886  ovs_assert(inited);
6888 }
#define ovs_assert(CONDITION)
Definition: util.h:73
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:593
Definition: vswitch-idl.h:628
static bool inited
Definition: vswitch-idl.c:18
struct ovsdb_idl_column ovsrec_ipfix_columns[OVSREC_IPFIX_N_COLUMNS]
Definition: vswitch-idl.c:7533
void ovsdb_idl_txn_verify(const struct ovsdb_idl_row *, const struct ovsdb_idl_column *)
Definition: ovsdb-idl.c:2168
void ovsrec_ipfix_verify_external_ids ( const struct ovsrec_ipfix row)
6917 {
6918  ovs_assert(inited);
6920 }
#define ovs_assert(CONDITION)
Definition: util.h:73
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:593
static bool inited
Definition: vswitch-idl.c:18
struct ovsdb_idl_column ovsrec_ipfix_columns[OVSREC_IPFIX_N_COLUMNS]
Definition: vswitch-idl.c:7533
void ovsdb_idl_txn_verify(const struct ovsdb_idl_row *, const struct ovsdb_idl_column *)
Definition: ovsdb-idl.c:2168
Definition: vswitch-idl.h:629
void ovsrec_ipfix_verify_obs_domain_id ( const struct ovsrec_ipfix row)
6949 {
6950  ovs_assert(inited);
6952 }
#define ovs_assert(CONDITION)
Definition: util.h:73
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:593
Definition: vswitch-idl.h:630
static bool inited
Definition: vswitch-idl.c:18
struct ovsdb_idl_column ovsrec_ipfix_columns[OVSREC_IPFIX_N_COLUMNS]
Definition: vswitch-idl.c:7533
void ovsdb_idl_txn_verify(const struct ovsdb_idl_row *, const struct ovsdb_idl_column *)
Definition: ovsdb-idl.c:2168
void ovsrec_ipfix_verify_obs_point_id ( const struct ovsrec_ipfix row)
6981 {
6982  ovs_assert(inited);
6984 }
#define ovs_assert(CONDITION)
Definition: util.h:73
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:593
static bool inited
Definition: vswitch-idl.c:18
Definition: vswitch-idl.h:631
struct ovsdb_idl_column ovsrec_ipfix_columns[OVSREC_IPFIX_N_COLUMNS]
Definition: vswitch-idl.c:7533
void ovsdb_idl_txn_verify(const struct ovsdb_idl_row *, const struct ovsdb_idl_column *)
Definition: ovsdb-idl.c:2168
void ovsrec_ipfix_verify_other_config ( const struct ovsrec_ipfix row)
7013 {
7014  ovs_assert(inited);
7016 }
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: vswitch-idl.h:632
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:593
static bool inited
Definition: vswitch-idl.c:18
struct ovsdb_idl_column ovsrec_ipfix_columns[OVSREC_IPFIX_N_COLUMNS]
Definition: vswitch-idl.c:7533
void ovsdb_idl_txn_verify(const struct ovsdb_idl_row *, const struct ovsdb_idl_column *)
Definition: ovsdb-idl.c:2168
void ovsrec_ipfix_verify_sampling ( const struct ovsrec_ipfix row)
7045 {
7046  ovs_assert(inited);
7048 }
#define ovs_assert(CONDITION)
Definition: util.h:73
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:593
Definition: vswitch-idl.h:633
static bool inited
Definition: vswitch-idl.c:18
struct ovsdb_idl_column ovsrec_ipfix_columns[OVSREC_IPFIX_N_COLUMNS]
Definition: vswitch-idl.c:7533
void ovsdb_idl_txn_verify(const struct ovsdb_idl_row *, const struct ovsdb_idl_column *)
Definition: ovsdb-idl.c:2168
void ovsrec_ipfix_verify_targets ( const struct ovsrec_ipfix row)
7077 {
7078  ovs_assert(inited);
7080 }
#define ovs_assert(CONDITION)
Definition: util.h:73
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:593
static bool inited
Definition: vswitch-idl.c:18
struct ovsdb_idl_column ovsrec_ipfix_columns[OVSREC_IPFIX_N_COLUMNS]
Definition: vswitch-idl.c:7533
void ovsdb_idl_txn_verify(const struct ovsdb_idl_row *, const struct ovsdb_idl_column *)
Definition: ovsdb-idl.c:2168
Definition: vswitch-idl.h:634
static struct ovsrec_manager* ovsrec_manager_cast ( const struct ovsdb_idl_row row)
static
65 {
66  return row ? CONTAINER_OF(row, struct ovsrec_manager, header_) : NULL;
67 }
Definition: vswitch-idl.h:997
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:593
#define CONTAINER_OF(POINTER, STRUCT, MEMBER)
Definition: util.h:207
static void ovsrec_manager_columns_init ( void  )
static
12640 {
12641  struct ovsdb_idl_column *c;
12642 
12643  /* Initialize ovsrec_manager_col_connection_mode. */
12645  c->name = "connection_mode";
12647  c->type.key.enum_ = xmalloc(sizeof *c->type.key.enum_);
12648  c->type.key.enum_->n = 2;
12649  c->type.key.enum_->keys = xmalloc(2 * sizeof *c->type.key.enum_->keys);
12650  c->type.key.enum_->keys[0].string = xstrdup("in-band");
12651  c->type.key.enum_->keys[1].string = xstrdup("out-of-band");
12652  c->type.key.enum_->values = NULL;
12654  c->type.key.u.string.minLen = 0;
12656  c->type.n_min = 0;
12657  c->type.n_max = 1;
12658  c->mutable = true;
12661 
12662  /* Initialize ovsrec_manager_col_external_ids. */
12664  c->name = "external_ids";
12666  c->type.key.u.string.minLen = 0;
12668  c->type.value.u.string.minLen = 0;
12669  c->type.n_min = 0;
12670  c->type.n_max = UINT_MAX;
12671  c->mutable = true;
12674 
12675  /* Initialize ovsrec_manager_col_inactivity_probe. */
12677  c->name = "inactivity_probe";
12680  c->type.n_min = 0;
12681  c->type.n_max = 1;
12682  c->mutable = true;
12685 
12686  /* Initialize ovsrec_manager_col_is_connected. */
12688  c->name = "is_connected";
12691  c->type.n_min = 1;
12692  c->type.n_max = 1;
12693  c->mutable = true;
12696 
12697  /* Initialize ovsrec_manager_col_max_backoff. */
12699  c->name = "max_backoff";
12701  c->type.key.u.integer.min = INT64_C(1000);
12703  c->type.n_min = 0;
12704  c->type.n_max = 1;
12705  c->mutable = true;
12708 
12709  /* Initialize ovsrec_manager_col_other_config. */
12711  c->name = "other_config";
12713  c->type.key.u.string.minLen = 0;
12715  c->type.value.u.string.minLen = 0;
12716  c->type.n_min = 0;
12717  c->type.n_max = UINT_MAX;
12718  c->mutable = true;
12721 
12722  /* Initialize ovsrec_manager_col_status. */
12724  c->name = "status";
12726  c->type.key.u.string.minLen = 0;
12728  c->type.value.u.string.minLen = 0;
12729  c->type.n_min = 0;
12730  c->type.n_max = UINT_MAX;
12731  c->mutable = true;
12734 
12735  /* Initialize ovsrec_manager_col_target. */
12737  c->name = "target";
12739  c->type.key.u.string.minLen = 0;
12741  c->type.n_min = 1;
12742  c->type.n_max = 1;
12743  c->mutable = true;
12746 }
void(* unparse)(struct ovsdb_idl_row *)
Definition: ovsdb-idl-provider.h:46
Definition: ovsdb-idl-provider.h:41
static void ovsrec_manager_unparse_target(struct ovsdb_idl_row *row OVS_UNUSED)
Definition: vswitch-idl.c:11863
struct ovsdb_base_type::@145::ovsdb_string_constraints string
static void ovsrec_manager_unparse_external_ids(struct ovsdb_idl_row *row_)
Definition: vswitch-idl.c:11812
void ovsdb_base_type_init(struct ovsdb_base_type *base, enum ovsdb_atomic_type type)
Definition: ovsdb-types.c:117
union ovsdb_base_type::@145 u
#define ovsrec_manager_col_status
Definition: vswitch-idl.h:1040
unsigned int n_min
Definition: ovsdb-types.h:136
struct ovsdb_base_type key
Definition: ovsdb-types.h:134
void(* parse)(struct ovsdb_idl_row *, const struct ovsdb_datum *)
Definition: ovsdb-idl-provider.h:45
#define ovsrec_manager_col_other_config
Definition: vswitch-idl.h:1043
unsigned int n_max
Definition: ovsdb-types.h:137
char * string
Definition: ovsdb-data.h:33
Definition: ovsdb-types.h:33
struct ovsdb_base_type value
Definition: ovsdb-types.h:135
char * name
Definition: ovsdb-idl-provider.h:42
void ovsdb_datum_sort_assert(struct ovsdb_datum *datum, enum ovsdb_atomic_type key_type)
Definition: ovsdb-data.c:1074
union ovsdb_atom * keys
Definition: ovsdb-data.h:127
Definition: ovsdb-types.h:30
void * xmalloc(size_t size)
Definition: util.c:110
static void ovsrec_manager_parse_inactivity_probe(struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
Definition: vswitch-idl.c:11712
union ovsdb_atom * values
Definition: ovsdb-data.h:128
char * xstrdup(const char *s)
Definition: util.c:149
static void ovsrec_manager_unparse_status(struct ovsdb_idl_row *row_)
Definition: vswitch-idl.c:11854
static void ovsrec_manager_parse_other_config(struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
Definition: vswitch-idl.c:11763
#define ovsrec_manager_col_is_connected
Definition: vswitch-idl.h:1046
#define ovsrec_manager_col_target
Definition: vswitch-idl.h:1041
#define ovsrec_manager_col_max_backoff
Definition: vswitch-idl.h:1039
struct ovsdb_type type
Definition: ovsdb-idl-provider.h:43
unsigned int n
Definition: ovsdb-data.h:126
static void ovsrec_manager_unparse_connection_mode(struct ovsdb_idl_row *row OVS_UNUSED)
Definition: vswitch-idl.c:11806
#define ovsrec_manager_col_connection_mode
Definition: vswitch-idl.h:1042
bool mutable
Definition: ovsdb-idl-provider.h:44
static void ovsrec_manager_unparse_max_backoff(struct ovsdb_idl_row *row_)
Definition: vswitch-idl.c:11836
static void ovsrec_manager_parse_max_backoff(struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
Definition: vswitch-idl.c:11744
Definition: ovsdb-types.h:29
struct ovsdb_base_type::@145::ovsdb_integer_constraints integer
#define ovsrec_manager_col_inactivity_probe
Definition: vswitch-idl.h:1044
static void ovsrec_manager_unparse_other_config(struct ovsdb_idl_row *row_)
Definition: vswitch-idl.c:11845
static void ovsrec_manager_unparse_inactivity_probe(struct ovsdb_idl_row *row_)
Definition: vswitch-idl.c:11821
#define ovsrec_manager_col_external_ids
Definition: vswitch-idl.h:1045
static void ovsrec_manager_unparse_is_connected(struct ovsdb_idl_row *row OVS_UNUSED)
Definition: vswitch-idl.c:11830
Definition: ovsdb-types.h:32
static void ovsrec_manager_parse_status(struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
Definition: vswitch-idl.c:11778
static void ovsrec_manager_parse_is_connected(struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
Definition: vswitch-idl.c:11731
static void ovsrec_manager_parse_connection_mode(struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
Definition: vswitch-idl.c:11684
static void ovsrec_manager_parse_external_ids(struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
Definition: vswitch-idl.c:11697
struct ovsdb_datum * enum_
Definition: ovsdb-types.h:57
static void ovsrec_manager_parse_target(struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
Definition: vswitch-idl.c:11793
void ovsrec_manager_delete ( const struct ovsrec_manager row)
11918 {
11920 }
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:998
void ovsdb_idl_txn_delete(const struct ovsdb_idl_row *row_)
Definition: ovsdb-idl.c:2208
const struct ovsrec_manager* ovsrec_manager_first ( const struct ovsdb_idl idl)
11900 {
11902 }
struct ovsdb_idl_table_class ovsrec_table_classes[OVSREC_N_TABLES]
Definition: vswitch-idl.c:21482
Definition: vswitch-idl.h:1921
const struct ovsdb_idl_row * ovsdb_idl_first_row(const struct ovsdb_idl *idl, const struct ovsdb_idl_table_class *table_class)
Definition: ovsdb-idl.c:1290
static struct ovsrec_manager * ovsrec_manager_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:64
const struct ovsdb_datum* ovsrec_manager_get_connection_mode ( const struct ovsrec_manager row,
enum ovsdb_atomic_type key_type  OVS_UNUSED 
)
12213 {
12214  ovs_assert(key_type == OVSDB_TYPE_STRING);
12216 }
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: ovsdb-types.h:33
#define ovsrec_manager_col_connection_mode
Definition: vswitch-idl.h:1042
const struct ovsdb_datum * ovsdb_idl_read(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column)
Definition: ovsdb-idl.c:1320
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:998
const struct ovsdb_datum* ovsrec_manager_get_external_ids ( const struct ovsrec_manager row,
enum ovsdb_atomic_type key_type  OVS_UNUSED,
enum ovsdb_atomic_type value_type  OVS_UNUSED 
)
12242 {
12243  ovs_assert(key_type == OVSDB_TYPE_STRING);
12244  ovs_assert(value_type == OVSDB_TYPE_STRING);
12246 }
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: ovsdb-types.h:33
const struct ovsdb_datum * ovsdb_idl_read(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column)
Definition: ovsdb-idl.c:1320
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:998
#define ovsrec_manager_col_external_ids
Definition: vswitch-idl.h:1045
const struct ovsrec_manager* ovsrec_manager_get_for_uuid ( const struct ovsdb_idl idl,
const struct uuid uuid 
)
11888 {
11890 }
const struct ovsdb_idl_row * ovsdb_idl_get_row_for_uuid(const struct ovsdb_idl *idl, const struct ovsdb_idl_table_class *tc, const struct uuid *uuid)
Definition: ovsdb-idl.c:1262
struct ovsdb_idl_table_class ovsrec_table_classes[OVSREC_N_TABLES]
Definition: vswitch-idl.c:21482
Definition: vswitch-idl.h:1921
static struct ovsrec_manager * ovsrec_manager_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:64
const struct ovsdb_datum* ovsrec_manager_get_inactivity_probe ( const struct ovsrec_manager row,
enum ovsdb_atomic_type key_type  OVS_UNUSED 
)
12270 {
12271  ovs_assert(key_type == OVSDB_TYPE_INTEGER);
12273 }
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: ovsdb-types.h:30
const struct ovsdb_datum * ovsdb_idl_read(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column)
Definition: ovsdb-idl.c:1320
#define ovsrec_manager_col_inactivity_probe
Definition: vswitch-idl.h:1044
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:998
const struct ovsdb_datum* ovsrec_manager_get_is_connected ( const struct ovsrec_manager row,
enum ovsdb_atomic_type key_type  OVS_UNUSED 
)
12297 {
12298  ovs_assert(key_type == OVSDB_TYPE_BOOLEAN);
12300 }
#define ovs_assert(CONDITION)
Definition: util.h:73
#define ovsrec_manager_col_is_connected
Definition: vswitch-idl.h:1046
const struct ovsdb_datum * ovsdb_idl_read(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column)
Definition: ovsdb-idl.c:1320
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:998
Definition: ovsdb-types.h:32
const struct ovsdb_datum* ovsrec_manager_get_max_backoff ( const struct ovsrec_manager row,
enum ovsdb_atomic_type key_type  OVS_UNUSED 
)
12324 {
12325  ovs_assert(key_type == OVSDB_TYPE_INTEGER);
12327 }
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: ovsdb-types.h:30
#define ovsrec_manager_col_max_backoff
Definition: vswitch-idl.h:1039
const struct ovsdb_datum * ovsdb_idl_read(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column)
Definition: ovsdb-idl.c:1320
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:998
const struct ovsdb_datum* ovsrec_manager_get_other_config ( const struct ovsrec_manager row,
enum ovsdb_atomic_type key_type  OVS_UNUSED,
enum ovsdb_atomic_type value_type  OVS_UNUSED 
)
12353 {
12354  ovs_assert(key_type == OVSDB_TYPE_STRING);
12355  ovs_assert(value_type == OVSDB_TYPE_STRING);
12357 }
#define ovs_assert(CONDITION)
Definition: util.h:73
#define ovsrec_manager_col_other_config
Definition: vswitch-idl.h:1043
Definition: ovsdb-types.h:33
const struct ovsdb_datum * ovsdb_idl_read(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column)
Definition: ovsdb-idl.c:1320
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:998
const struct ovsdb_datum* ovsrec_manager_get_status ( const struct ovsrec_manager row,
enum ovsdb_atomic_type key_type  OVS_UNUSED,
enum ovsdb_atomic_type value_type  OVS_UNUSED 
)
12383 {
12384  ovs_assert(key_type == OVSDB_TYPE_STRING);
12385  ovs_assert(value_type == OVSDB_TYPE_STRING);
12387 }
#define ovs_assert(CONDITION)
Definition: util.h:73
#define ovsrec_manager_col_status
Definition: vswitch-idl.h:1040
Definition: ovsdb-types.h:33
const struct ovsdb_datum * ovsdb_idl_read(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column)
Definition: ovsdb-idl.c:1320
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:998
const struct ovsdb_datum* ovsrec_manager_get_target ( const struct ovsrec_manager row,
enum ovsdb_atomic_type key_type  OVS_UNUSED 
)
12411 {
12412  ovs_assert(key_type == OVSDB_TYPE_STRING);
12414 }
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: ovsdb-types.h:33
#define ovsrec_manager_col_target
Definition: vswitch-idl.h:1041
const struct ovsdb_datum * ovsdb_idl_read(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column)
Definition: ovsdb-idl.c:1320
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:998
void ovsrec_manager_init ( struct ovsrec_manager row)
11877 {
11878  memset(row, 0, sizeof *row);
11879  smap_init(&row->external_ids);
11880  smap_init(&row->other_config);
11881  smap_init(&row->status);
11882 }
void smap_init(struct smap *smap)
Definition: smap.c:33
struct smap external_ids
Definition: vswitch-idl.h:1004
struct smap status
Definition: vswitch-idl.h:1021
struct smap other_config
Definition: vswitch-idl.h:1018
static void ovsrec_manager_init__ ( struct ovsdb_idl_row row)
static
11870 {
11872 }
void ovsrec_manager_init(struct ovsrec_manager *row)
Definition: vswitch-idl.c:11876
static struct ovsrec_manager * ovsrec_manager_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:64
struct ovsrec_manager* ovsrec_manager_insert ( struct ovsdb_idl_txn txn)
11931 {
11933 }
struct ovsdb_idl_table_class ovsrec_table_classes[OVSREC_N_TABLES]
Definition: vswitch-idl.c:21482
Definition: vswitch-idl.h:1921
const struct ovsdb_idl_row * ovsdb_idl_txn_insert(struct ovsdb_idl_txn *txn, const struct ovsdb_idl_table_class *class, const struct uuid *uuid)
Definition: ovsdb-idl.c:2247
static struct ovsrec_manager * ovsrec_manager_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:64
const struct ovsrec_manager* ovsrec_manager_next ( const struct ovsrec_manager row)
11908 {
11910 }
const struct ovsdb_idl_row * ovsdb_idl_next_row(const struct ovsdb_idl_row *row)
Definition: ovsdb-idl.c:1301
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:998
static struct ovsrec_manager * ovsrec_manager_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:64
static void ovsrec_manager_parse_connection_mode ( struct ovsdb_idl_row row_,
const struct ovsdb_datum datum 
)
static
11685 {
11686  struct ovsrec_manager *row = ovsrec_manager_cast(row_);
11687 
11688  ovs_assert(inited);
11689  if (datum->n >= 1) {
11690  row->connection_mode = datum->keys[0].string;
11691  } else {
11692  row->connection_mode = NULL;
11693  }
11694 }
Definition: vswitch-idl.h:997
#define ovs_assert(CONDITION)
Definition: util.h:73
char * connection_mode
Definition: vswitch-idl.h:1001
char * string
Definition: ovsdb-data.h:33
union ovsdb_atom * keys
Definition: ovsdb-data.h:127
static bool inited
Definition: vswitch-idl.c:18
unsigned int n
Definition: ovsdb-data.h:126
static struct ovsrec_manager * ovsrec_manager_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:64
static void ovsrec_manager_parse_external_ids ( struct ovsdb_idl_row row_,
const struct ovsdb_datum datum 
)
static
11698 {
11699  struct ovsrec_manager *row = ovsrec_manager_cast(row_);
11700  size_t i;
11701 
11702  ovs_assert(inited);
11703  smap_init(&row->external_ids);
11704  for (i = 0; i < datum->n; i++) {
11705  smap_add(&row->external_ids,
11706  datum->keys[i].string,
11707  datum->values[i].string);
11708  }
11709 }
Definition: vswitch-idl.h:997
#define ovs_assert(CONDITION)
Definition: util.h:73
void smap_init(struct smap *smap)
Definition: smap.c:33
char * string
Definition: ovsdb-data.h:33
struct smap_node * smap_add(struct smap *smap, const char *key, const char *value)
Definition: smap.c:50
union ovsdb_atom * keys
Definition: ovsdb-data.h:127
struct smap external_ids
Definition: vswitch-idl.h:1004
union ovsdb_atom * values
Definition: ovsdb-data.h:128
static bool inited
Definition: vswitch-idl.c:18
unsigned int n
Definition: ovsdb-data.h:126
static struct ovsrec_manager * ovsrec_manager_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:64
static void ovsrec_manager_parse_inactivity_probe ( struct ovsdb_idl_row row_,
const struct ovsdb_datum datum 
)
static
11713 {
11714  struct ovsrec_manager *row = ovsrec_manager_cast(row_);
11715  size_t n = MIN(1, datum->n);
11716  size_t i;
11717 
11718  ovs_assert(inited);
11719  row->inactivity_probe = NULL;
11720  row->n_inactivity_probe = 0;
11721  for (i = 0; i < n; i++) {
11722  if (!row->n_inactivity_probe) {
11723  row->inactivity_probe = xmalloc(n * sizeof *row->inactivity_probe);
11724  }
11725  row->inactivity_probe[row->n_inactivity_probe] = datum->keys[i].integer;
11726  row->n_inactivity_probe++;
11727  }
11728 }
int64_t integer
Definition: ovsdb-data.h:30
Definition: vswitch-idl.h:997
#define ovs_assert(CONDITION)
Definition: util.h:73
size_t n_inactivity_probe
Definition: vswitch-idl.h:1008
union ovsdb_atom * keys
Definition: ovsdb-data.h:127
void * xmalloc(size_t size)
Definition: util.c:110
int64_t * inactivity_probe
Definition: vswitch-idl.h:1007
static bool inited
Definition: vswitch-idl.c:18
unsigned int n
Definition: ovsdb-data.h:126
#define MIN(_a, _b)
Definition: Util.h:68
static struct ovsrec_manager * ovsrec_manager_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:64
static void ovsrec_manager_parse_is_connected ( struct ovsdb_idl_row row_,
const struct ovsdb_datum datum 
)
static
11732 {
11733  struct ovsrec_manager *row = ovsrec_manager_cast(row_);
11734 
11735  ovs_assert(inited);
11736  if (datum->n >= 1) {
11737  row->is_connected = datum->keys[0].boolean;
11738  } else {
11739  row->is_connected = false;
11740  }
11741 }
Definition: vswitch-idl.h:997
#define ovs_assert(CONDITION)
Definition: util.h:73
bool is_connected
Definition: vswitch-idl.h:1011
union ovsdb_atom * keys
Definition: ovsdb-data.h:127
bool boolean
Definition: ovsdb-data.h:32
static bool inited
Definition: vswitch-idl.c:18
unsigned int n
Definition: ovsdb-data.h:126
static struct ovsrec_manager * ovsrec_manager_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:64
static void ovsrec_manager_parse_max_backoff ( struct ovsdb_idl_row row_,
const struct ovsdb_datum datum 
)
static
11745 {
11746  struct ovsrec_manager *row = ovsrec_manager_cast(row_);
11747  size_t n = MIN(1, datum->n);
11748  size_t i;
11749 
11750  ovs_assert(inited);
11751  row->max_backoff = NULL;
11752  row->n_max_backoff = 0;
11753  for (i = 0; i < n; i++) {
11754  if (!row->n_max_backoff) {
11755  row->max_backoff = xmalloc(n * sizeof *row->max_backoff);
11756  }
11757  row->max_backoff[row->n_max_backoff] = datum->keys[i].integer;
11758  row->n_max_backoff++;
11759  }
11760 }
int64_t integer
Definition: ovsdb-data.h:30
Definition: vswitch-idl.h:997
int64_t * max_backoff
Definition: vswitch-idl.h:1014
#define ovs_assert(CONDITION)
Definition: util.h:73
union ovsdb_atom * keys
Definition: ovsdb-data.h:127
void * xmalloc(size_t size)
Definition: util.c:110
static bool inited
Definition: vswitch-idl.c:18
unsigned int n
Definition: ovsdb-data.h:126
#define MIN(_a, _b)
Definition: Util.h:68
size_t n_max_backoff
Definition: vswitch-idl.h:1015
static struct ovsrec_manager * ovsrec_manager_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:64
static void ovsrec_manager_parse_other_config ( struct ovsdb_idl_row row_,
const struct ovsdb_datum datum 
)
static
11764 {
11765  struct ovsrec_manager *row = ovsrec_manager_cast(row_);
11766  size_t i;
11767 
11768  ovs_assert(inited);
11769  smap_init(&row->other_config);
11770  for (i = 0; i < datum->n; i++) {
11771  smap_add(&row->other_config,
11772  datum->keys[i].string,
11773  datum->values[i].string);
11774  }
11775 }
Definition: vswitch-idl.h:997
#define ovs_assert(CONDITION)
Definition: util.h:73
void smap_init(struct smap *smap)
Definition: smap.c:33
char * string
Definition: ovsdb-data.h:33
struct smap_node * smap_add(struct smap *smap, const char *key, const char *value)
Definition: smap.c:50
union ovsdb_atom * keys
Definition: ovsdb-data.h:127
union ovsdb_atom * values
Definition: ovsdb-data.h:128
static bool inited
Definition: vswitch-idl.c:18
unsigned int n
Definition: ovsdb-data.h:126
struct smap other_config
Definition: vswitch-idl.h:1018
static struct ovsrec_manager * ovsrec_manager_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:64
static void ovsrec_manager_parse_status ( struct ovsdb_idl_row row_,
const struct ovsdb_datum datum 
)
static
11779 {
11780  struct ovsrec_manager *row = ovsrec_manager_cast(row_);
11781  size_t i;
11782 
11783  ovs_assert(inited);
11784  smap_init(&row->status);
11785  for (i = 0; i < datum->n; i++) {
11786  smap_add(&row->status,
11787  datum->keys[i].string,
11788  datum->values[i].string);
11789  }
11790 }
Definition: vswitch-idl.h:997
#define ovs_assert(CONDITION)
Definition: util.h:73
void smap_init(struct smap *smap)
Definition: smap.c:33
char * string
Definition: ovsdb-data.h:33
struct smap_node * smap_add(struct smap *smap, const char *key, const char *value)
Definition: smap.c:50
union ovsdb_atom * keys
Definition: ovsdb-data.h:127
union ovsdb_atom * values
Definition: ovsdb-data.h:128
struct smap status
Definition: vswitch-idl.h:1021
static bool inited
Definition: vswitch-idl.c:18
unsigned int n
Definition: ovsdb-data.h:126
static struct ovsrec_manager * ovsrec_manager_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:64
static void ovsrec_manager_parse_target ( struct ovsdb_idl_row row_,
const struct ovsdb_datum datum 
)
static
11794 {
11795  struct ovsrec_manager *row = ovsrec_manager_cast(row_);
11796 
11797  ovs_assert(inited);
11798  if (datum->n >= 1) {
11799  row->target = datum->keys[0].string;
11800  } else {
11801  row->target = "";
11802  }
11803 }
Definition: vswitch-idl.h:997
#define ovs_assert(CONDITION)
Definition: util.h:73
char * string
Definition: ovsdb-data.h:33
union ovsdb_atom * keys
Definition: ovsdb-data.h:127
static bool inited
Definition: vswitch-idl.c:18
unsigned int n
Definition: ovsdb-data.h:126
char * target
Definition: vswitch-idl.h:1024
static struct ovsrec_manager * ovsrec_manager_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:64
void ovsrec_manager_set_connection_mode ( const struct ovsrec_manager row,
const char *  connection_mode 
)
12427 {
12428  struct ovsdb_datum datum;
12429  union ovsdb_atom key;
12430 
12431  ovs_assert(inited);
12432  if (connection_mode) {
12433  datum.n = 1;
12434  datum.keys = &key;
12435  key.string = CONST_CAST(char *, connection_mode);
12436  } else {
12437  datum.n = 0;
12438  datum.keys = NULL;
12439  }
12440  datum.values = NULL;
12442 }
Definition: ovsdb-data.h:125
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: ovsdb-data.h:29
struct ovsdb_idl_column ovsrec_manager_columns[OVSREC_MANAGER_N_COLUMNS]
Definition: vswitch-idl.c:12636
static bool inited
Definition: vswitch-idl.c:18
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:998
Definition: vswitch-idl.h:1028
#define CONST_CAST(TYPE, POINTER)
Definition: util.h:88
static struct aes128 key
Definition: uuid.c:34
void ovsdb_idl_txn_write_clone(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column, const struct ovsdb_datum *datum)
Definition: ovsdb-idl.c:2131
void ovsrec_manager_set_external_ids ( const struct ovsrec_manager row,
const struct smap external_ids 
)
12450 {
12451  struct ovsdb_datum datum;
12452 
12453  ovs_assert(inited);
12454  if (external_ids) {
12455  struct smap_node *node;
12456  size_t i;
12457 
12458  datum.n = smap_count(external_ids);
12459  datum.keys = xmalloc(datum.n * sizeof *datum.keys);
12460  datum.values = xmalloc(datum.n * sizeof *datum.values);
12461 
12462  i = 0;
12463  SMAP_FOR_EACH (node, external_ids) {
12464  datum.keys[i].string = xstrdup(node->key);
12465  datum.values[i].string = xstrdup(node->value);
12466  i++;
12467  }
12469  } else {
12470  ovsdb_datum_init_empty(&datum);
12471  }
12474  &datum);
12475 }
char * value
Definition: smap.h:31
Definition: ovsdb-data.h:125
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: vswitch-idl.h:1029
Definition: ovsdb-types.h:33
size_t ovsdb_datum_sort_unique(struct ovsdb_datum *datum, enum ovsdb_atomic_type key_type, enum ovsdb_atomic_type value_type)
Definition: ovsdb-data.c:1089
#define SMAP_FOR_EACH(SMAP_NODE, SMAP)
Definition: smap.h:36
void * xmalloc(size_t size)
Definition: util.c:110
struct ovsdb_idl_column ovsrec_manager_columns[OVSREC_MANAGER_N_COLUMNS]
Definition: vswitch-idl.c:12636
char * xstrdup(const char *s)
Definition: util.c:149
static bool inited
Definition: vswitch-idl.c:18
struct hmap_node node
Definition: smap.h:29
Definition: smap.h:28
size_t smap_count(const struct smap *smap)
Definition: smap.c:238
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:998
void ovsdb_datum_init_empty(struct ovsdb_datum *datum)
Definition: ovsdb-data.c:835
void ovsdb_idl_txn_write(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column, struct ovsdb_datum *datum)
Definition: ovsdb-idl.c:2123
char * key
Definition: smap.h:30
void ovsrec_manager_set_inactivity_probe ( const struct ovsrec_manager row,
const int64_t inactivity_probe,
size_t  n_inactivity_probe 
)
12487 {
12488  struct ovsdb_datum datum;
12489  union ovsdb_atom key;
12490 
12491  ovs_assert(inited);
12492  if (n_inactivity_probe) {
12493  datum.n = 1;
12494  datum.keys = &key;
12495  key.integer = *inactivity_probe;
12496  } else {
12497  datum.n = 0;
12498  datum.keys = NULL;
12499  }
12500  datum.values = NULL;
12502 }
Definition: ovsdb-data.h:125
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: ovsdb-data.h:29
struct ovsdb_idl_column ovsrec_manager_columns[OVSREC_MANAGER_N_COLUMNS]
Definition: vswitch-idl.c:12636
static bool inited
Definition: vswitch-idl.c:18
Definition: vswitch-idl.h:1030
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:998
static struct aes128 key
Definition: uuid.c:34
void ovsdb_idl_txn_write_clone(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column, const struct ovsdb_datum *datum)
Definition: ovsdb-idl.c:2131
void ovsrec_manager_set_is_connected ( const struct ovsrec_manager row,
bool  is_connected 
)
12510 {
12511  struct ovsdb_datum datum;
12512  union ovsdb_atom key;
12513 
12514  ovs_assert(inited);
12515  datum.n = 1;
12516  datum.keys = &key;
12517  key.boolean = is_connected;
12518  datum.values = NULL;
12520 }
Definition: ovsdb-data.h:125
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: ovsdb-data.h:29
struct ovsdb_idl_column ovsrec_manager_columns[OVSREC_MANAGER_N_COLUMNS]
Definition: vswitch-idl.c:12636
static bool inited
Definition: vswitch-idl.c:18
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:998
Definition: vswitch-idl.h:1031
static struct aes128 key
Definition: uuid.c:34
void ovsdb_idl_txn_write_clone(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column, const struct ovsdb_datum *datum)
Definition: ovsdb-idl.c:2131
void ovsrec_manager_set_max_backoff ( const struct ovsrec_manager row,
const int64_t max_backoff,
size_t  n_max_backoff 
)
12533 {
12534  struct ovsdb_datum datum;
12535  union ovsdb_atom key;
12536 
12537  ovs_assert(inited);
12538  if (n_max_backoff) {
12539  datum.n = 1;
12540  datum.keys = &key;
12541  key.integer = *max_backoff;
12542  } else {
12543  datum.n = 0;
12544  datum.keys = NULL;
12545  }
12546  datum.values = NULL;
12548 }
Definition: ovsdb-data.h:125
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: ovsdb-data.h:29
struct ovsdb_idl_column ovsrec_manager_columns[OVSREC_MANAGER_N_COLUMNS]
Definition: vswitch-idl.c:12636
static bool inited
Definition: vswitch-idl.c:18
Definition: vswitch-idl.h:1032
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:998
static struct aes128 key
Definition: uuid.c:34
void ovsdb_idl_txn_write_clone(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column, const struct ovsdb_datum *datum)
Definition: ovsdb-idl.c:2131
void ovsrec_manager_set_other_config ( const struct ovsrec_manager row,
const struct smap other_config 
)
12556 {
12557  struct ovsdb_datum datum;
12558 
12559  ovs_assert(inited);
12560  if (other_config) {
12561  struct smap_node *node;
12562  size_t i;
12563 
12564  datum.n = smap_count(other_config);
12565  datum.keys = xmalloc(datum.n * sizeof *datum.keys);
12566  datum.values = xmalloc(datum.n * sizeof *datum.values);
12567 
12568  i = 0;
12569  SMAP_FOR_EACH (node, other_config) {
12570  datum.keys[i].string = xstrdup(node->key);
12571  datum.values[i].string = xstrdup(node->value);
12572  i++;
12573  }
12575  } else {
12576  ovsdb_datum_init_empty(&datum);
12577  }
12580  &datum);
12581 }
char * value
Definition: smap.h:31
Definition: ovsdb-data.h:125
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: ovsdb-types.h:33
size_t ovsdb_datum_sort_unique(struct ovsdb_datum *datum, enum ovsdb_atomic_type key_type, enum ovsdb_atomic_type value_type)
Definition: ovsdb-data.c:1089
#define SMAP_FOR_EACH(SMAP_NODE, SMAP)
Definition: smap.h:36
void * xmalloc(size_t size)
Definition: util.c:110
struct ovsdb_idl_column ovsrec_manager_columns[OVSREC_MANAGER_N_COLUMNS]
Definition: vswitch-idl.c:12636
char * xstrdup(const char *s)
Definition: util.c:149
Definition: vswitch-idl.h:1033
static bool inited
Definition: vswitch-idl.c:18
struct hmap_node node
Definition: smap.h:29
Definition: smap.h:28
size_t smap_count(const struct smap *smap)
Definition: smap.c:238
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:998
void ovsdb_datum_init_empty(struct ovsdb_datum *datum)
Definition: ovsdb-data.c:835
void ovsdb_idl_txn_write(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column, struct ovsdb_datum *datum)
Definition: ovsdb-idl.c:2123
char * key
Definition: smap.h:30
void ovsrec_manager_set_status ( const struct ovsrec_manager row,
const struct smap status 
)
12590 {
12591  struct ovsdb_datum datum;
12592 
12593  ovs_assert(inited);
12594  if (status) {
12595  struct smap_node *node;
12596  size_t i;
12597 
12598  datum.n = smap_count(status);
12599  datum.keys = xmalloc(datum.n * sizeof *datum.keys);
12600  datum.values = xmalloc(datum.n * sizeof *datum.values);
12601 
12602  i = 0;
12603  SMAP_FOR_EACH (node, status) {
12604  datum.keys[i].string = xstrdup(node->key);
12605  datum.values[i].string = xstrdup(node->value);
12606  i++;
12607  }
12609  } else {
12610  ovsdb_datum_init_empty(&datum);
12611  }
12614  &datum);
12615 }
char * value
Definition: smap.h:31
Definition: ovsdb-data.h:125
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: ovsdb-types.h:33
size_t ovsdb_datum_sort_unique(struct ovsdb_datum *datum, enum ovsdb_atomic_type key_type, enum ovsdb_atomic_type value_type)
Definition: ovsdb-data.c:1089
#define SMAP_FOR_EACH(SMAP_NODE, SMAP)
Definition: smap.h:36
void * xmalloc(size_t size)
Definition: util.c:110
struct ovsdb_idl_column ovsrec_manager_columns[OVSREC_MANAGER_N_COLUMNS]
Definition: vswitch-idl.c:12636
char * xstrdup(const char *s)
Definition: util.c:149
Definition: vswitch-idl.h:1034
static bool inited
Definition: vswitch-idl.c:18
struct hmap_node node
Definition: smap.h:29
Definition: smap.h:28
size_t smap_count(const struct smap *smap)
Definition: smap.c:238
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:998
void ovsdb_datum_init_empty(struct ovsdb_datum *datum)
Definition: ovsdb-data.c:835
void ovsdb_idl_txn_write(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column, struct ovsdb_datum *datum)
Definition: ovsdb-idl.c:2123
char * key
Definition: smap.h:30
void ovsrec_manager_set_target ( const struct ovsrec_manager row,
const char *  target 
)
12624 {
12625  struct ovsdb_datum datum;
12626  union ovsdb_atom key;
12627 
12628  ovs_assert(inited);
12629  datum.n = 1;
12630  datum.keys = &key;
12631  key.string = CONST_CAST(char *, target);
12632  datum.values = NULL;
12634 }
Definition: ovsdb-data.h:125
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: ovsdb-data.h:29
struct ovsdb_idl_column ovsrec_manager_columns[OVSREC_MANAGER_N_COLUMNS]
Definition: vswitch-idl.c:12636
static bool inited
Definition: vswitch-idl.c:18
struct in6_addr target
Definition: flow.h:153
Definition: vswitch-idl.h:1035
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:998
#define CONST_CAST(TYPE, POINTER)
Definition: util.h:88
static struct aes128 key
Definition: uuid.c:34
void ovsdb_idl_txn_write_clone(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column, const struct ovsdb_datum *datum)
Definition: ovsdb-idl.c:2131
static void ovsrec_manager_unparse_connection_mode ( struct ovsdb_idl_row *row  OVS_UNUSED)
static
11807 {
11808  /* Nothing to do. */
11809 }
static void ovsrec_manager_unparse_external_ids ( struct ovsdb_idl_row row_)
static
11813 {
11814  struct ovsrec_manager *row = ovsrec_manager_cast(row_);
11815 
11816  ovs_assert(inited);
11817  smap_destroy(&row->external_ids);
11818 }
Definition: vswitch-idl.h:997
#define ovs_assert(CONDITION)
Definition: util.h:73
struct smap external_ids
Definition: vswitch-idl.h:1004
static bool inited
Definition: vswitch-idl.c:18
void smap_destroy(struct smap *smap)
Definition: smap.c:39
static struct ovsrec_manager * ovsrec_manager_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:64
static void ovsrec_manager_unparse_inactivity_probe ( struct ovsdb_idl_row row_)
static
11822 {
11823  struct ovsrec_manager *row = ovsrec_manager_cast(row_);
11824 
11825  ovs_assert(inited);
11826  free(row->inactivity_probe);
11827 }
Definition: vswitch-idl.h:997
#define ovs_assert(CONDITION)
Definition: util.h:73
int64_t * inactivity_probe
Definition: vswitch-idl.h:1007
static bool inited
Definition: vswitch-idl.c:18
static struct ovsrec_manager * ovsrec_manager_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:64
static void ovsrec_manager_unparse_is_connected ( struct ovsdb_idl_row *row  OVS_UNUSED)
static
11831 {
11832  /* Nothing to do. */
11833 }
static void ovsrec_manager_unparse_max_backoff ( struct ovsdb_idl_row row_)
static
11837 {
11838  struct ovsrec_manager *row = ovsrec_manager_cast(row_);
11839 
11840  ovs_assert(inited);
11841  free(row->max_backoff);
11842 }
Definition: vswitch-idl.h:997
int64_t * max_backoff
Definition: vswitch-idl.h:1014
#define ovs_assert(CONDITION)
Definition: util.h:73
static bool inited
Definition: vswitch-idl.c:18
static struct ovsrec_manager * ovsrec_manager_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:64
static void ovsrec_manager_unparse_other_config ( struct ovsdb_idl_row row_)
static
11846 {
11847  struct ovsrec_manager *row = ovsrec_manager_cast(row_);
11848 
11849  ovs_assert(inited);
11850  smap_destroy(&row->other_config);
11851 }
Definition: vswitch-idl.h:997
#define ovs_assert(CONDITION)
Definition: util.h:73
static bool inited
Definition: vswitch-idl.c:18
struct smap other_config
Definition: vswitch-idl.h:1018
void smap_destroy(struct smap *smap)
Definition: smap.c:39
static struct ovsrec_manager * ovsrec_manager_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:64
static void ovsrec_manager_unparse_status ( struct ovsdb_idl_row row_)
static
11855 {
11856  struct ovsrec_manager *row = ovsrec_manager_cast(row_);
11857 
11858  ovs_assert(inited);
11859  smap_destroy(&row->status);
11860 }
Definition: vswitch-idl.h:997
#define ovs_assert(CONDITION)
Definition: util.h:73
struct smap status
Definition: vswitch-idl.h:1021
static bool inited
Definition: vswitch-idl.c:18
void smap_destroy(struct smap *smap)
Definition: smap.c:39
static struct ovsrec_manager * ovsrec_manager_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:64
static void ovsrec_manager_unparse_target ( struct ovsdb_idl_row *row  OVS_UNUSED)
static
11864 {
11865  /* Nothing to do. */
11866 }
void ovsrec_manager_verify_connection_mode ( const struct ovsrec_manager row)
11962 {
11963  ovs_assert(inited);
11965 }
#define ovs_assert(CONDITION)
Definition: util.h:73
struct ovsdb_idl_column ovsrec_manager_columns[OVSREC_MANAGER_N_COLUMNS]
Definition: vswitch-idl.c:12636
static bool inited
Definition: vswitch-idl.c:18
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:998
void ovsdb_idl_txn_verify(const struct ovsdb_idl_row *, const struct ovsdb_idl_column *)
Definition: ovsdb-idl.c:2168
Definition: vswitch-idl.h:1028
void ovsrec_manager_verify_external_ids ( const struct ovsrec_manager row)
11994 {
11995  ovs_assert(inited);
11997 }
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: vswitch-idl.h:1029
struct ovsdb_idl_column ovsrec_manager_columns[OVSREC_MANAGER_N_COLUMNS]
Definition: vswitch-idl.c:12636
static bool inited
Definition: vswitch-idl.c:18
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:998
void ovsdb_idl_txn_verify(const struct ovsdb_idl_row *, const struct ovsdb_idl_column *)
Definition: ovsdb-idl.c:2168
void ovsrec_manager_verify_inactivity_probe ( const struct ovsrec_manager row)
12026 {
12027  ovs_assert(inited);
12029 }
#define ovs_assert(CONDITION)
Definition: util.h:73
struct ovsdb_idl_column ovsrec_manager_columns[OVSREC_MANAGER_N_COLUMNS]
Definition: vswitch-idl.c:12636
static bool inited
Definition: vswitch-idl.c:18
Definition: vswitch-idl.h:1030
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:998
void ovsdb_idl_txn_verify(const struct ovsdb_idl_row *, const struct ovsdb_idl_column *)
Definition: ovsdb-idl.c:2168
void ovsrec_manager_verify_is_connected ( const struct ovsrec_manager row)
12058 {
12059  ovs_assert(inited);
12061 }
#define ovs_assert(CONDITION)
Definition: util.h:73
struct ovsdb_idl_column ovsrec_manager_columns[OVSREC_MANAGER_N_COLUMNS]
Definition: vswitch-idl.c:12636
static bool inited
Definition: vswitch-idl.c:18
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:998
Definition: vswitch-idl.h:1031
void ovsdb_idl_txn_verify(const struct ovsdb_idl_row *, const struct ovsdb_idl_column *)
Definition: ovsdb-idl.c:2168
void ovsrec_manager_verify_max_backoff ( const struct ovsrec_manager row)
12090 {
12091  ovs_assert(inited);
12093 }
#define ovs_assert(CONDITION)
Definition: util.h:73
struct ovsdb_idl_column ovsrec_manager_columns[OVSREC_MANAGER_N_COLUMNS]
Definition: vswitch-idl.c:12636
static bool inited
Definition: vswitch-idl.c:18
Definition: vswitch-idl.h:1032
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:998
void ovsdb_idl_txn_verify(const struct ovsdb_idl_row *, const struct ovsdb_idl_column *)
Definition: ovsdb-idl.c:2168
void ovsrec_manager_verify_other_config ( const struct ovsrec_manager row)
12122 {
12123  ovs_assert(inited);
12125 }
#define ovs_assert(CONDITION)
Definition: util.h:73
struct ovsdb_idl_column ovsrec_manager_columns[OVSREC_MANAGER_N_COLUMNS]
Definition: vswitch-idl.c:12636
Definition: vswitch-idl.h:1033
static bool inited
Definition: vswitch-idl.c:18
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:998
void ovsdb_idl_txn_verify(const struct ovsdb_idl_row *, const struct ovsdb_idl_column *)
Definition: ovsdb-idl.c:2168
void ovsrec_manager_verify_status ( const struct ovsrec_manager row)
12154 {
12155  ovs_assert(inited);
12157 }
#define ovs_assert(CONDITION)
Definition: util.h:73
struct ovsdb_idl_column ovsrec_manager_columns[OVSREC_MANAGER_N_COLUMNS]
Definition: vswitch-idl.c:12636
Definition: vswitch-idl.h:1034
static bool inited
Definition: vswitch-idl.c:18
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:998
void ovsdb_idl_txn_verify(const struct ovsdb_idl_row *, const struct ovsdb_idl_column *)
Definition: ovsdb-idl.c:2168
void ovsrec_manager_verify_target ( const struct ovsrec_manager row)
12186 {
12187  ovs_assert(inited);
12189 }
#define ovs_assert(CONDITION)
Definition: util.h:73
struct ovsdb_idl_column ovsrec_manager_columns[OVSREC_MANAGER_N_COLUMNS]
Definition: vswitch-idl.c:12636
static bool inited
Definition: vswitch-idl.c:18
Definition: vswitch-idl.h:1035
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:998
void ovsdb_idl_txn_verify(const struct ovsdb_idl_row *, const struct ovsdb_idl_column *)
Definition: ovsdb-idl.c:2168
static struct ovsrec_mirror* ovsrec_mirror_cast ( const struct ovsdb_idl_row row)
static
71 {
72  return row ? CONTAINER_OF(row, struct ovsrec_mirror, header_) : NULL;
73 }
#define CONTAINER_OF(POINTER, STRUCT, MEMBER)
Definition: util.h:207
Definition: vswitch-idl.h:1095
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:998
static void ovsrec_mirror_columns_init ( void  )
static
13796 {
13797  struct ovsdb_idl_column *c;
13798 
13799  /* Initialize ovsrec_mirror_col_external_ids. */
13801  c->name = "external_ids";
13803  c->type.key.u.string.minLen = 0;
13805  c->type.value.u.string.minLen = 0;
13806  c->type.n_min = 0;
13807  c->type.n_max = UINT_MAX;
13808  c->mutable = true;
13811 
13812  /* Initialize ovsrec_mirror_col_name. */
13814  c->name = "name";
13816  c->type.key.u.string.minLen = 0;
13818  c->type.n_min = 1;
13819  c->type.n_max = 1;
13820  c->mutable = true;
13823 
13824  /* Initialize ovsrec_mirror_col_output_port. */
13826  c->name = "output_port";
13828  c->type.key.u.uuid.refTableName = "Port";
13829  c->type.key.u.uuid.refType = OVSDB_REF_WEAK;
13831  c->type.n_min = 0;
13832  c->type.n_max = 1;
13833  c->mutable = true;
13836 
13837  /* Initialize ovsrec_mirror_col_output_vlan. */
13839  c->name = "output_vlan";
13841  c->type.key.u.integer.min = INT64_C(1);
13842  c->type.key.u.integer.max = INT64_C(4095);
13844  c->type.n_min = 0;
13845  c->type.n_max = 1;
13846  c->mutable = true;
13849 
13850  /* Initialize ovsrec_mirror_col_select_all. */
13852  c->name = "select_all";
13855  c->type.n_min = 1;
13856  c->type.n_max = 1;
13857  c->mutable = true;
13860 
13861  /* Initialize ovsrec_mirror_col_select_dst_port. */
13863  c->name = "select_dst_port";
13865  c->type.key.u.uuid.refTableName = "Port";
13866  c->type.key.u.uuid.refType = OVSDB_REF_WEAK;
13868  c->type.n_min = 0;
13869  c->type.n_max = UINT_MAX;
13870  c->mutable = true;
13873 
13874  /* Initialize ovsrec_mirror_col_select_src_port. */
13876  c->name = "select_src_port";
13878  c->type.key.u.uuid.refTableName = "Port";
13879  c->type.key.u.uuid.refType = OVSDB_REF_WEAK;
13881  c->type.n_min = 0;
13882  c->type.n_max = UINT_MAX;
13883  c->mutable = true;
13886 
13887  /* Initialize ovsrec_mirror_col_select_vlan. */
13889  c->name = "select_vlan";
13891  c->type.key.u.integer.min = INT64_C(0);
13892  c->type.key.u.integer.max = INT64_C(4095);
13894  c->type.n_min = 0;
13895  c->type.n_max = 4096;
13896  c->mutable = true;
13899 
13900  /* Initialize ovsrec_mirror_col_statistics. */
13902  c->name = "statistics";
13904  c->type.key.u.string.minLen = 0;
13906  c->type.n_min = 0;
13907  c->type.n_max = UINT_MAX;
13908  c->mutable = true;
13911 }
void(* unparse)(struct ovsdb_idl_row *)
Definition: ovsdb-idl-provider.h:46
Definition: ovsdb-idl-provider.h:41
struct ovsdb_base_type::@145::ovsdb_string_constraints string
static void ovsrec_mirror_unparse_output_port(struct ovsdb_idl_row *row OVS_UNUSED)
Definition: vswitch-idl.c:12921
void ovsdb_base_type_init(struct ovsdb_base_type *base, enum ovsdb_atomic_type type)
Definition: ovsdb-types.c:117
union ovsdb_base_type::@145 u
static void ovsrec_mirror_parse_select_src_port(struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
Definition: vswitch-idl.c:12845
static void ovsrec_mirror_unparse_select_src_port(struct ovsdb_idl_row *row_)
Definition: vswitch-idl.c:12951
unsigned int n_min
Definition: ovsdb-types.h:136
struct ovsdb_base_type key
Definition: ovsdb-types.h:134
void(* parse)(struct ovsdb_idl_row *, const struct ovsdb_datum *)
Definition: ovsdb-idl-provider.h:45
unsigned int n_max
Definition: ovsdb-types.h:137
#define ovsrec_mirror_col_select_all
Definition: vswitch-idl.h:1149
Definition: ovsdb-types.h:33
struct ovsdb_base_type value
Definition: ovsdb-types.h:135
char * name
Definition: ovsdb-idl-provider.h:42
Definition: ovsdb-types.h:34
static void ovsrec_mirror_parse_select_dst_port(struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
Definition: vswitch-idl.c:12824
Definition: ovsdb-types.h:30
#define ovsrec_mirror_col_output_vlan
Definition: vswitch-idl.h:1152
static void ovsrec_mirror_unparse_output_vlan(struct ovsdb_idl_row *row_)
Definition: vswitch-idl.c:12927
Definition: ovsdb-types.h:49
static void ovsrec_mirror_unparse_statistics(struct ovsdb_idl_row *row_)
Definition: vswitch-idl.c:12969
static void ovsrec_mirror_unparse_external_ids(struct ovsdb_idl_row *row_)
Definition: vswitch-idl.c:12906
static void ovsrec_mirror_parse_output_port(struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
Definition: vswitch-idl.c:12779
static void ovsrec_mirror_parse_select_vlan(struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
Definition: vswitch-idl.c:12866
static void ovsrec_mirror_unparse_name(struct ovsdb_idl_row *row OVS_UNUSED)
Definition: vswitch-idl.c:12915
#define ovsrec_mirror_col_select_vlan
Definition: vswitch-idl.h:1153
static void ovsrec_mirror_parse_name(struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
Definition: vswitch-idl.c:12766
#define ovsrec_mirror_col_select_dst_port
Definition: vswitch-idl.h:1150
static void ovsrec_mirror_parse_statistics(struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
Definition: vswitch-idl.c:12885
struct ovsdb_type type
Definition: ovsdb-idl-provider.h:43
struct ovsdb_base_type::@145::ovsdb_uuid_constraints uuid
static void ovsrec_mirror_unparse_select_all(struct ovsdb_idl_row *row OVS_UNUSED)
Definition: vswitch-idl.c:12936
bool mutable
Definition: ovsdb-idl-provider.h:44
static void ovsrec_mirror_parse_select_all(struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
Definition: vswitch-idl.c:12811
Definition: ovsdb-types.h:29
#define ovsrec_mirror_col_output_port
Definition: vswitch-idl.h:1145
struct ovsdb_base_type::@145::ovsdb_integer_constraints integer
#define ovsrec_mirror_col_name
Definition: vswitch-idl.h:1148
static void ovsrec_mirror_parse_output_vlan(struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
Definition: vswitch-idl.c:12792
static void ovsrec_mirror_parse_external_ids(struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
Definition: vswitch-idl.c:12751
#define ovsrec_mirror_col_statistics
Definition: vswitch-idl.h:1147
#define ovsrec_mirror_col_external_ids
Definition: vswitch-idl.h:1151
static void ovsrec_mirror_unparse_select_vlan(struct ovsdb_idl_row *row_)
Definition: vswitch-idl.c:12960
Definition: ovsdb-types.h:32
static void ovsrec_mirror_unparse_select_dst_port(struct ovsdb_idl_row *row_)
Definition: vswitch-idl.c:12942
#define ovsrec_mirror_col_select_src_port
Definition: vswitch-idl.h:1146
void ovsrec_mirror_delete ( const struct ovsrec_mirror row)
13026 {
13028 }
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:1096
void ovsdb_idl_txn_delete(const struct ovsdb_idl_row *row_)
Definition: ovsdb-idl.c:2208
const struct ovsrec_mirror* ovsrec_mirror_first ( const struct ovsdb_idl idl)
13008 {
13010 }
struct ovsdb_idl_table_class ovsrec_table_classes[OVSREC_N_TABLES]
Definition: vswitch-idl.c:21482
static struct ovsrec_mirror * ovsrec_mirror_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:70
Definition: vswitch-idl.h:1922
const struct ovsdb_idl_row * ovsdb_idl_first_row(const struct ovsdb_idl *idl, const struct ovsdb_idl_table_class *table_class)
Definition: ovsdb-idl.c:1290
const struct ovsdb_datum* ovsrec_mirror_get_external_ids ( const struct ovsrec_mirror row,
enum ovsdb_atomic_type key_type  OVS_UNUSED,
enum ovsdb_atomic_type value_type  OVS_UNUSED 
)
13355 {
13356  ovs_assert(key_type == OVSDB_TYPE_STRING);
13357  ovs_assert(value_type == OVSDB_TYPE_STRING);
13359 }
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: ovsdb-types.h:33
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:1096
const struct ovsdb_datum * ovsdb_idl_read(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column)
Definition: ovsdb-idl.c:1320
#define ovsrec_mirror_col_external_ids
Definition: vswitch-idl.h:1151
const struct ovsrec_mirror* ovsrec_mirror_get_for_uuid ( const struct ovsdb_idl idl,
const struct uuid uuid 
)
12996 {
12998 }
const struct ovsdb_idl_row * ovsdb_idl_get_row_for_uuid(const struct ovsdb_idl *idl, const struct ovsdb_idl_table_class *tc, const struct uuid *uuid)
Definition: ovsdb-idl.c:1262
struct ovsdb_idl_table_class ovsrec_table_classes[OVSREC_N_TABLES]
Definition: vswitch-idl.c:21482
static struct ovsrec_mirror * ovsrec_mirror_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:70
Definition: vswitch-idl.h:1922
const struct ovsdb_datum* ovsrec_mirror_get_name ( const struct ovsrec_mirror row,
enum ovsdb_atomic_type key_type  OVS_UNUSED 
)
13383 {
13384  ovs_assert(key_type == OVSDB_TYPE_STRING);
13386 }
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: ovsdb-types.h:33
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:1096
const struct ovsdb_datum * ovsdb_idl_read(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column)
Definition: ovsdb-idl.c:1320
#define ovsrec_mirror_col_name
Definition: vswitch-idl.h:1148
const struct ovsdb_datum* ovsrec_mirror_get_output_port ( const struct ovsrec_mirror row,
enum ovsdb_atomic_type key_type  OVS_UNUSED 
)
13410 {
13411  ovs_assert(key_type == OVSDB_TYPE_UUID);
13413 }
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: ovsdb-types.h:34
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:1096
#define ovsrec_mirror_col_output_port
Definition: vswitch-idl.h:1145
const struct ovsdb_datum * ovsdb_idl_read(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column)
Definition: ovsdb-idl.c:1320
const struct ovsdb_datum* ovsrec_mirror_get_output_vlan ( const struct ovsrec_mirror row,
enum ovsdb_atomic_type key_type  OVS_UNUSED 
)
13437 {
13438  ovs_assert(key_type == OVSDB_TYPE_INTEGER);
13440 }
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: ovsdb-types.h:30
#define ovsrec_mirror_col_output_vlan
Definition: vswitch-idl.h:1152
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:1096
const struct ovsdb_datum * ovsdb_idl_read(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column)
Definition: ovsdb-idl.c:1320
const struct ovsdb_datum* ovsrec_mirror_get_select_all ( const struct ovsrec_mirror row,
enum ovsdb_atomic_type key_type  OVS_UNUSED 
)
13464 {
13465  ovs_assert(key_type == OVSDB_TYPE_BOOLEAN);
13467 }
#define ovs_assert(CONDITION)
Definition: util.h:73
#define ovsrec_mirror_col_select_all
Definition: vswitch-idl.h:1149
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:1096
const struct ovsdb_datum * ovsdb_idl_read(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column)
Definition: ovsdb-idl.c:1320
Definition: ovsdb-types.h:32
const struct ovsdb_datum* ovsrec_mirror_get_select_dst_port ( const struct ovsrec_mirror row,
enum ovsdb_atomic_type key_type  OVS_UNUSED 
)
13491 {
13492  ovs_assert(key_type == OVSDB_TYPE_UUID);
13494 }
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: ovsdb-types.h:34
#define ovsrec_mirror_col_select_dst_port
Definition: vswitch-idl.h:1150
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:1096
const struct ovsdb_datum * ovsdb_idl_read(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column)
Definition: ovsdb-idl.c:1320
const struct ovsdb_datum* ovsrec_mirror_get_select_src_port ( const struct ovsrec_mirror row,
enum ovsdb_atomic_type key_type  OVS_UNUSED 
)
13518 {
13519  ovs_assert(key_type == OVSDB_TYPE_UUID);
13521 }
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: ovsdb-types.h:34
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:1096
const struct ovsdb_datum * ovsdb_idl_read(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column)
Definition: ovsdb-idl.c:1320
#define ovsrec_mirror_col_select_src_port
Definition: vswitch-idl.h:1146
const struct ovsdb_datum* ovsrec_mirror_get_select_vlan ( const struct ovsrec_mirror row,
enum ovsdb_atomic_type key_type  OVS_UNUSED 
)
13545 {
13546  ovs_assert(key_type == OVSDB_TYPE_INTEGER);
13548 }
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: ovsdb-types.h:30
#define ovsrec_mirror_col_select_vlan
Definition: vswitch-idl.h:1153
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:1096
const struct ovsdb_datum * ovsdb_idl_read(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column)
Definition: ovsdb-idl.c:1320
const struct ovsdb_datum* ovsrec_mirror_get_statistics ( const struct ovsrec_mirror row,
enum ovsdb_atomic_type key_type  OVS_UNUSED,
enum ovsdb_atomic_type value_type  OVS_UNUSED 
)
13574 {
13575  ovs_assert(key_type == OVSDB_TYPE_STRING);
13576  ovs_assert(value_type == OVSDB_TYPE_INTEGER);
13578 }
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: ovsdb-types.h:33
Definition: ovsdb-types.h:30
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:1096
const struct ovsdb_datum * ovsdb_idl_read(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column)
Definition: ovsdb-idl.c:1320
#define ovsrec_mirror_col_statistics
Definition: vswitch-idl.h:1147
void ovsrec_mirror_init ( struct ovsrec_mirror row)
12987 {
12988  memset(row, 0, sizeof *row);
12989  smap_init(&row->external_ids);
12990 }
void smap_init(struct smap *smap)
Definition: smap.c:33
struct smap external_ids
Definition: vswitch-idl.h:1099
static void ovsrec_mirror_init__ ( struct ovsdb_idl_row row)
static
12980 {
12982 }
void ovsrec_mirror_init(struct ovsrec_mirror *row)
Definition: vswitch-idl.c:12986
static struct ovsrec_mirror * ovsrec_mirror_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:70
struct ovsrec_mirror* ovsrec_mirror_insert ( struct ovsdb_idl_txn txn)
13039 {
13041 }
struct ovsdb_idl_table_class ovsrec_table_classes[OVSREC_N_TABLES]
Definition: vswitch-idl.c:21482
static struct ovsrec_mirror * ovsrec_mirror_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:70
const struct ovsdb_idl_row * ovsdb_idl_txn_insert(struct ovsdb_idl_txn *txn, const struct ovsdb_idl_table_class *class, const struct uuid *uuid)
Definition: ovsdb-idl.c:2247
Definition: vswitch-idl.h:1922
const struct ovsrec_mirror* ovsrec_mirror_next ( const struct ovsrec_mirror row)
13016 {
13018 }
static struct ovsrec_mirror * ovsrec_mirror_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:70
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:1096
const struct ovsdb_idl_row * ovsdb_idl_next_row(const struct ovsdb_idl_row *row)
Definition: ovsdb-idl.c:1301
static void ovsrec_mirror_parse_external_ids ( struct ovsdb_idl_row row_,
const struct ovsdb_datum datum 
)
static
12752 {
12753  struct ovsrec_mirror *row = ovsrec_mirror_cast(row_);
12754  size_t i;
12755 
12756  ovs_assert(inited);
12757  smap_init(&row->external_ids);
12758  for (i = 0; i < datum->n; i++) {
12759  smap_add(&row->external_ids,
12760  datum->keys[i].string,
12761  datum->values[i].string);
12762  }
12763 }
static struct ovsrec_mirror * ovsrec_mirror_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:70
#define ovs_assert(CONDITION)
Definition: util.h:73
void smap_init(struct smap *smap)
Definition: smap.c:33
char * string
Definition: ovsdb-data.h:33
struct smap_node * smap_add(struct smap *smap, const char *key, const char *value)
Definition: smap.c:50
union ovsdb_atom * keys
Definition: ovsdb-data.h:127
union ovsdb_atom * values
Definition: ovsdb-data.h:128
static bool inited
Definition: vswitch-idl.c:18
unsigned int n
Definition: ovsdb-data.h:126
struct smap external_ids
Definition: vswitch-idl.h:1099
Definition: vswitch-idl.h:1095
static void ovsrec_mirror_parse_name ( struct ovsdb_idl_row row_,
const struct ovsdb_datum datum 
)
static
12767 {
12768  struct ovsrec_mirror *row = ovsrec_mirror_cast(row_);
12769 
12770  ovs_assert(inited);
12771  if (datum->n >= 1) {
12772  row->name = datum->keys[0].string;
12773  } else {
12774  row->name = "";
12775  }
12776 }
static struct ovsrec_mirror * ovsrec_mirror_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:70
#define ovs_assert(CONDITION)
Definition: util.h:73
char * string
Definition: ovsdb-data.h:33
union ovsdb_atom * keys
Definition: ovsdb-data.h:127
static bool inited
Definition: vswitch-idl.c:18
unsigned int n
Definition: ovsdb-data.h:126
Definition: vswitch-idl.h:1095
char * name
Definition: vswitch-idl.h:1102
static void ovsrec_mirror_parse_output_port ( struct ovsdb_idl_row row_,
const struct ovsdb_datum datum 
)
static
12780 {
12781  struct ovsrec_mirror *row = ovsrec_mirror_cast(row_);
12782 
12783  ovs_assert(inited);
12784  if (datum->n >= 1) {
12786  } else {
12787  row->output_port = NULL;
12788  }
12789 }
struct ovsdb_idl_table_class ovsrec_table_classes[OVSREC_N_TABLES]
Definition: vswitch-idl.c:21482
static struct ovsrec_mirror * ovsrec_mirror_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:70
#define ovs_assert(CONDITION)
Definition: util.h:73
struct ovsdb_idl_row * ovsdb_idl_get_row_arc(struct ovsdb_idl_row *src, struct ovsdb_idl_table_class *dst_table, const struct uuid *dst_uuid)
Definition: ovsdb-idl.c:1216
union ovsdb_atom * keys
Definition: ovsdb-data.h:127
static bool inited
Definition: vswitch-idl.c:18
unsigned int n
Definition: ovsdb-data.h:126
Definition: vswitch-idl.h:1095
struct uuid uuid
Definition: ovsdb-data.h:34
static struct ovsrec_port * ovsrec_port_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:88
struct ovsrec_port * output_port
Definition: vswitch-idl.h:1105
Definition: vswitch-idl.h:1925
static void ovsrec_mirror_parse_output_vlan ( struct ovsdb_idl_row row_,
const struct ovsdb_datum datum 
)
static
12793 {
12794  struct ovsrec_mirror *row = ovsrec_mirror_cast(row_);
12795  size_t n = MIN(1, datum->n);
12796  size_t i;
12797 
12798  ovs_assert(inited);
12799  row->output_vlan = NULL;
12800  row->n_output_vlan = 0;
12801  for (i = 0; i < n; i++) {
12802  if (!row->n_output_vlan) {
12803  row->output_vlan = xmalloc(n * sizeof *row->output_vlan);
12804  }
12805  row->output_vlan[row->n_output_vlan] = datum->keys[i].integer;
12806  row->n_output_vlan++;
12807  }
12808 }
int64_t integer
Definition: ovsdb-data.h:30
static struct ovsrec_mirror * ovsrec_mirror_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:70
#define ovs_assert(CONDITION)
Definition: util.h:73
union ovsdb_atom * keys
Definition: ovsdb-data.h:127
void * xmalloc(size_t size)
Definition: util.c:110
static bool inited
Definition: vswitch-idl.c:18
size_t n_output_vlan
Definition: vswitch-idl.h:1109
unsigned int n
Definition: ovsdb-data.h:126
Definition: vswitch-idl.h:1095
#define MIN(_a, _b)
Definition: Util.h:68
int64_t * output_vlan
Definition: vswitch-idl.h:1108
static void ovsrec_mirror_parse_select_all ( struct ovsdb_idl_row row_,
const struct ovsdb_datum datum 
)
static
12812 {
12813  struct ovsrec_mirror *row = ovsrec_mirror_cast(row_);
12814 
12815  ovs_assert(inited);
12816  if (datum->n >= 1) {
12817  row->select_all = datum->keys[0].boolean;
12818  } else {
12819  row->select_all = false;
12820  }
12821 }
static struct ovsrec_mirror * ovsrec_mirror_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:70
#define ovs_assert(CONDITION)
Definition: util.h:73
bool select_all
Definition: vswitch-idl.h:1112
union ovsdb_atom * keys
Definition: ovsdb-data.h:127
bool boolean
Definition: ovsdb-data.h:32
static bool inited
Definition: vswitch-idl.c:18
unsigned int n
Definition: ovsdb-data.h:126
Definition: vswitch-idl.h:1095
static void ovsrec_mirror_parse_select_dst_port ( struct ovsdb_idl_row row_,
const struct ovsdb_datum datum 
)
static
12825 {
12826  struct ovsrec_mirror *row = ovsrec_mirror_cast(row_);
12827  size_t i;
12828 
12829  ovs_assert(inited);
12830  row->select_dst_port = NULL;
12831  row->n_select_dst_port = 0;
12832  for (i = 0; i < datum->n; i++) {
12834  if (keyRow) {
12835  if (!row->n_select_dst_port) {
12836  row->select_dst_port = xmalloc(datum->n * sizeof *row->select_dst_port);
12837  }
12838  row->select_dst_port[row->n_select_dst_port] = keyRow;
12839  row->n_select_dst_port++;
12840  }
12841  }
12842 }
struct ovsdb_idl_table_class ovsrec_table_classes[OVSREC_N_TABLES]
Definition: vswitch-idl.c:21482
static struct ovsrec_mirror * ovsrec_mirror_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:70
#define ovs_assert(CONDITION)
Definition: util.h:73
struct ovsrec_port ** select_dst_port
Definition: vswitch-idl.h:1115
struct ovsdb_idl_row * ovsdb_idl_get_row_arc(struct ovsdb_idl_row *src, struct ovsdb_idl_table_class *dst_table, const struct uuid *dst_uuid)
Definition: ovsdb-idl.c:1216
Definition: vswitch-idl.h:1436
union ovsdb_atom * keys
Definition: ovsdb-data.h:127
void * xmalloc(size_t size)
Definition: util.c:110
static bool inited
Definition: vswitch-idl.c:18
unsigned int n
Definition: ovsdb-data.h:126
Definition: vswitch-idl.h:1095
struct uuid uuid
Definition: ovsdb-data.h:34
static struct ovsrec_port * ovsrec_port_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:88
Definition: vswitch-idl.h:1925
size_t n_select_dst_port
Definition: vswitch-idl.h:1116
static void ovsrec_mirror_parse_select_src_port ( struct ovsdb_idl_row row_,
const struct ovsdb_datum datum 
)
static
12846 {
12847  struct ovsrec_mirror *row = ovsrec_mirror_cast(row_);
12848  size_t i;
12849 
12850  ovs_assert(inited);
12851  row->select_src_port = NULL;
12852  row->n_select_src_port = 0;
12853  for (i = 0; i < datum->n; i++) {
12855  if (keyRow) {
12856  if (!row->n_select_src_port) {
12857  row->select_src_port = xmalloc(datum->n * sizeof *row->select_src_port);
12858  }
12859  row->select_src_port[row->n_select_src_port] = keyRow;
12860  row->n_select_src_port++;
12861  }
12862  }
12863 }
struct ovsdb_idl_table_class ovsrec_table_classes[OVSREC_N_TABLES]
Definition: vswitch-idl.c:21482
static struct ovsrec_mirror * ovsrec_mirror_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:70
#define ovs_assert(CONDITION)
Definition: util.h:73
struct ovsdb_idl_row * ovsdb_idl_get_row_arc(struct ovsdb_idl_row *src, struct ovsdb_idl_table_class *dst_table, const struct uuid *dst_uuid)
Definition: ovsdb-idl.c:1216
Definition: vswitch-idl.h:1436
union ovsdb_atom * keys
Definition: ovsdb-data.h:127
void * xmalloc(size_t size)
Definition: util.c:110
static bool inited
Definition: vswitch-idl.c:18
unsigned int n
Definition: ovsdb-data.h:126
size_t n_select_src_port
Definition: vswitch-idl.h:1120
Definition: vswitch-idl.h:1095
struct uuid uuid
Definition: ovsdb-data.h:34
static struct ovsrec_port * ovsrec_port_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:88
Definition: vswitch-idl.h:1925
struct ovsrec_port ** select_src_port
Definition: vswitch-idl.h:1119
static void ovsrec_mirror_parse_select_vlan ( struct ovsdb_idl_row row_,
const struct ovsdb_datum datum 
)
static
12867 {
12868  struct ovsrec_mirror *row = ovsrec_mirror_cast(row_);
12869  size_t n = MIN(4096, datum->n);
12870  size_t i;
12871 
12872  ovs_assert(inited);
12873  row->select_vlan = NULL;
12874  row->n_select_vlan = 0;
12875  for (i = 0; i < n; i++) {
12876  if (!row->n_select_vlan) {
12877  row->select_vlan = xmalloc(n * sizeof *row->select_vlan);
12878  }
12879  row->select_vlan[row->n_select_vlan] = datum->keys[i].integer;
12880  row->n_select_vlan++;
12881  }
12882 }
int64_t integer
Definition: ovsdb-data.h:30
static struct ovsrec_mirror * ovsrec_mirror_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:70
#define ovs_assert(CONDITION)
Definition: util.h:73
int64_t * select_vlan
Definition: vswitch-idl.h:1123
size_t n_select_vlan
Definition: vswitch-idl.h:1124
union ovsdb_atom * keys
Definition: ovsdb-data.h:127
void * xmalloc(size_t size)
Definition: util.c:110
static bool inited
Definition: vswitch-idl.c:18
unsigned int n
Definition: ovsdb-data.h:126
Definition: vswitch-idl.h:1095
#define MIN(_a, _b)
Definition: Util.h:68
static void ovsrec_mirror_parse_statistics ( struct ovsdb_idl_row row_,
const struct ovsdb_datum datum 
)
static
12886 {
12887  struct ovsrec_mirror *row = ovsrec_mirror_cast(row_);
12888  size_t i;
12889 
12890  ovs_assert(inited);
12891  row->key_statistics = NULL;
12892  row->value_statistics = NULL;
12893  row->n_statistics = 0;
12894  for (i = 0; i < datum->n; i++) {
12895  if (!row->n_statistics) {
12896  row->key_statistics = xmalloc(datum->n * sizeof *row->key_statistics);
12897  row->value_statistics = xmalloc(datum->n * sizeof *row->value_statistics);
12898  }
12899  row->key_statistics[row->n_statistics] = datum->keys[i].string;
12900  row->value_statistics[row->n_statistics] = datum->values[i].integer;
12901  row->n_statistics++;
12902  }
12903 }
int64_t integer
Definition: ovsdb-data.h:30
static struct ovsrec_mirror * ovsrec_mirror_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:70
#define ovs_assert(CONDITION)
Definition: util.h:73
char * string
Definition: ovsdb-data.h:33
union ovsdb_atom * keys
Definition: ovsdb-data.h:127
void * xmalloc(size_t size)
Definition: util.c:110
union ovsdb_atom * values
Definition: ovsdb-data.h:128
static bool inited
Definition: vswitch-idl.c:18
unsigned int n
Definition: ovsdb-data.h:126
Definition: vswitch-idl.h:1095
char ** key_statistics
Definition: vswitch-idl.h:1127
int64_t * value_statistics
Definition: vswitch-idl.h:1128
size_t n_statistics
Definition: vswitch-idl.h:1129
void ovsrec_mirror_set_external_ids ( const struct ovsrec_mirror row,
const struct smap external_ids 
)
13586 {
13587  struct ovsdb_datum datum;
13588 
13589  ovs_assert(inited);
13590  if (external_ids) {
13591  struct smap_node *node;
13592  size_t i;
13593 
13594  datum.n = smap_count(external_ids);
13595  datum.keys = xmalloc(datum.n * sizeof *datum.keys);
13596  datum.values = xmalloc(datum.n * sizeof *datum.values);
13597 
13598  i = 0;
13599  SMAP_FOR_EACH (node, external_ids) {
13600  datum.keys[i].string = xstrdup(node->key);
13601  datum.values[i].string = xstrdup(node->value);
13602  i++;
13603  }
13605  } else {
13606  ovsdb_datum_init_empty(&datum);
13607  }
13610  &datum);
13611 }
char * value
Definition: smap.h:31
Definition: ovsdb-data.h:125
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: ovsdb-types.h:33
size_t ovsdb_datum_sort_unique(struct ovsdb_datum *datum, enum ovsdb_atomic_type key_type, enum ovsdb_atomic_type value_type)
Definition: ovsdb-data.c:1089
#define SMAP_FOR_EACH(SMAP_NODE, SMAP)
Definition: smap.h:36
void * xmalloc(size_t size)
Definition: util.c:110
char * xstrdup(const char *s)
Definition: util.c:149
static bool inited
Definition: vswitch-idl.c:18
struct hmap_node node
Definition: smap.h:29
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:1096
Definition: vswitch-idl.h:1133
Definition: smap.h:28
size_t smap_count(const struct smap *smap)
Definition: smap.c:238
void ovsdb_datum_init_empty(struct ovsdb_datum *datum)
Definition: ovsdb-data.c:835
struct ovsdb_idl_column ovsrec_mirror_columns[OVSREC_MIRROR_N_COLUMNS]
Definition: vswitch-idl.c:13792
void ovsdb_idl_txn_write(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column, struct ovsdb_datum *datum)
Definition: ovsdb-idl.c:2123
char * key
Definition: smap.h:30
void ovsrec_mirror_set_name ( const struct ovsrec_mirror row,
const char *  name 
)
13620 {
13621  struct ovsdb_datum datum;
13622  union ovsdb_atom key;
13623 
13624  ovs_assert(inited);
13625  datum.n = 1;
13626  datum.keys = &key;
13627  key.string = CONST_CAST(char *, name);
13628  datum.values = NULL;
13630 }
Definition: ovsdb-data.h:125
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: ovsdb-data.h:29
Definition: vswitch-idl.h:1134
static bool inited
Definition: vswitch-idl.c:18
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:1096
struct ovsdb_idl_column ovsrec_mirror_columns[OVSREC_MIRROR_N_COLUMNS]
Definition: vswitch-idl.c:13792
string name
Definition: setup.py:30
#define CONST_CAST(TYPE, POINTER)
Definition: util.h:88
static struct aes128 key
Definition: uuid.c:34
void ovsdb_idl_txn_write_clone(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column, const struct ovsdb_datum *datum)
Definition: ovsdb-idl.c:2131
void ovsrec_mirror_set_output_port ( const struct ovsrec_mirror row,
const struct ovsrec_port output_port 
)
13641 {
13642  struct ovsdb_datum datum;
13643  union ovsdb_atom key;
13644 
13645  ovs_assert(inited);
13646  if (output_port) {
13647  datum.n = 1;
13648  datum.keys = &key;
13649  key.uuid = output_port->header_.uuid;
13650  } else {
13651  datum.n = 0;
13652  datum.keys = NULL;
13653  }
13654  datum.values = NULL;
13656 }
Definition: ovsdb-data.h:125
Definition: vswitch-idl.h:1135
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: ovsdb-data.h:29
static bool inited
Definition: vswitch-idl.c:18
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:1096
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:1437
struct ovsdb_idl_column ovsrec_mirror_columns[OVSREC_MIRROR_N_COLUMNS]
Definition: vswitch-idl.c:13792
static struct aes128 key
Definition: uuid.c:34
struct uuid uuid
Definition: ovsdb-idl-provider.h:28
void ovsdb_idl_txn_write_clone(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column, const struct ovsdb_datum *datum)
Definition: ovsdb-idl.c:2131
void ovsrec_mirror_set_output_vlan ( const struct ovsrec_mirror row,
const int64_t output_vlan,
size_t  n_output_vlan 
)
13669 {
13670  struct ovsdb_datum datum;
13671  union ovsdb_atom key;
13672 
13673  ovs_assert(inited);
13674  if (n_output_vlan) {
13675  datum.n = 1;
13676  datum.keys = &key;
13677  key.integer = *output_vlan;
13678  } else {
13679  datum.n = 0;
13680  datum.keys = NULL;
13681  }
13682  datum.values = NULL;
13684 }
Definition: ovsdb-data.h:125
Definition: vswitch-idl.h:1136
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: ovsdb-data.h:29
static bool inited
Definition: vswitch-idl.c:18
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:1096
struct ovsdb_idl_column ovsrec_mirror_columns[OVSREC_MIRROR_N_COLUMNS]
Definition: vswitch-idl.c:13792
static struct aes128 key
Definition: uuid.c:34
void ovsdb_idl_txn_write_clone(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column, const struct ovsdb_datum *datum)
Definition: ovsdb-idl.c:2131
void ovsrec_mirror_set_select_all ( const struct ovsrec_mirror row,
bool  select_all 
)
13692 {
13693  struct ovsdb_datum datum;
13694  union ovsdb_atom key;
13695 
13696  ovs_assert(inited);
13697  datum.n = 1;
13698  datum.keys = &key;
13699  key.boolean = select_all;
13700  datum.values = NULL;
13702 }
Definition: ovsdb-data.h:125
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: vswitch-idl.h:1137
Definition: ovsdb-data.h:29
static bool inited
Definition: vswitch-idl.c:18
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:1096
struct ovsdb_idl_column ovsrec_mirror_columns[OVSREC_MIRROR_N_COLUMNS]
Definition: vswitch-idl.c:13792
static struct aes128 key
Definition: uuid.c:34
void ovsdb_idl_txn_write_clone(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column, const struct ovsdb_datum *datum)
Definition: ovsdb-idl.c:2131
void ovsrec_mirror_set_select_dst_port ( const struct ovsrec_mirror row,
struct ovsrec_port **  select_dst_port,
size_t  n_select_dst_port 
)
13710 {
13711  struct ovsdb_datum datum;
13712  size_t i;
13713 
13714  ovs_assert(inited);
13715  datum.n = n_select_dst_port;
13716  datum.keys = n_select_dst_port ? xmalloc(n_select_dst_port * sizeof *datum.keys) : NULL;
13717  datum.values = NULL;
13718  for (i = 0; i < n_select_dst_port; i++) {
13719  datum.keys[i].uuid = select_dst_port[i]->header_.uuid;
13720  }
13723 }
Definition: ovsdb-data.h:125
#define ovs_assert(CONDITION)
Definition: util.h:73
size_t ovsdb_datum_sort_unique(struct ovsdb_datum *datum, enum ovsdb_atomic_type key_type, enum ovsdb_atomic_type value_type)
Definition: ovsdb-data.c:1089
Definition: ovsdb-types.h:34
void * xmalloc(size_t size)
Definition: util.c:110
static bool inited
Definition: vswitch-idl.c:18
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:1096
Definition: ovsdb-types.h:29
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:1437
Definition: vswitch-idl.h:1138
struct ovsdb_idl_column ovsrec_mirror_columns[OVSREC_MIRROR_N_COLUMNS]
Definition: vswitch-idl.c:13792
void ovsdb_idl_txn_write(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column, struct ovsdb_datum *datum)
Definition: ovsdb-idl.c:2123
struct uuid uuid
Definition: ovsdb-idl-provider.h:28
void ovsrec_mirror_set_select_src_port ( const struct ovsrec_mirror row,
struct ovsrec_port **  select_src_port,
size_t  n_select_src_port 
)
13731 {
13732  struct ovsdb_datum datum;
13733  size_t i;
13734 
13735  ovs_assert(inited);
13736  datum.n = n_select_src_port;
13737  datum.keys = n_select_src_port ? xmalloc(n_select_src_port * sizeof *datum.keys) : NULL;
13738  datum.values = NULL;
13739  for (i = 0; i < n_select_src_port; i++) {
13740  datum.keys[i].uuid = select_src_port[i]->header_.uuid;
13741  }
13744 }
Definition: ovsdb-data.h:125
#define ovs_assert(CONDITION)
Definition: util.h:73
size_t ovsdb_datum_sort_unique(struct ovsdb_datum *datum, enum ovsdb_atomic_type key_type, enum ovsdb_atomic_type value_type)
Definition: ovsdb-data.c:1089
Definition: ovsdb-types.h:34
void * xmalloc(size_t size)
Definition: util.c:110
static bool inited
Definition: vswitch-idl.c:18
Definition: vswitch-idl.h:1139
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:1096
Definition: ovsdb-types.h:29
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:1437
struct ovsdb_idl_column ovsrec_mirror_columns[OVSREC_MIRROR_N_COLUMNS]
Definition: vswitch-idl.c:13792
void ovsdb_idl_txn_write(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column, struct ovsdb_datum *datum)
Definition: ovsdb-idl.c:2123
struct uuid uuid
Definition: ovsdb-idl-provider.h:28
void ovsrec_mirror_set_select_vlan ( const struct ovsrec_mirror row,
const int64_t select_vlan,
size_t  n_select_vlan 
)
13754 {
13755  struct ovsdb_datum datum;
13756  size_t i;
13757 
13758  ovs_assert(inited);
13759  datum.n = n_select_vlan;
13760  datum.keys = n_select_vlan ? xmalloc(n_select_vlan * sizeof *datum.keys) : NULL;
13761  datum.values = NULL;
13762  for (i = 0; i < n_select_vlan; i++) {
13763  datum.keys[i].integer = select_vlan[i];
13764  }
13767 }
Definition: ovsdb-data.h:125
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: vswitch-idl.h:1140
size_t ovsdb_datum_sort_unique(struct ovsdb_datum *datum, enum ovsdb_atomic_type key_type, enum ovsdb_atomic_type value_type)
Definition: ovsdb-data.c:1089
Definition: ovsdb-types.h:30
void * xmalloc(size_t size)
Definition: util.c:110
static bool inited
Definition: vswitch-idl.c:18
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:1096
Definition: ovsdb-types.h:29
struct ovsdb_idl_column ovsrec_mirror_columns[OVSREC_MIRROR_N_COLUMNS]
Definition: vswitch-idl.c:13792
void ovsdb_idl_txn_write(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column, struct ovsdb_datum *datum)
Definition: ovsdb-idl.c:2123
void ovsrec_mirror_set_statistics ( const struct ovsrec_mirror row,
const char **  key_statistics,
const int64_t value_statistics,
size_t  n_statistics 
)
13776 {
13777  struct ovsdb_datum datum;
13778  size_t i;
13779 
13780  ovs_assert(inited);
13781  datum.n = n_statistics;
13782  datum.keys = n_statistics ? xmalloc(n_statistics * sizeof *datum.keys) : NULL;
13783  datum.values = xmalloc(n_statistics * sizeof *datum.values);
13784  for (i = 0; i < n_statistics; i++) {
13785  datum.keys[i].string = xstrdup(key_statistics[i]);
13786  datum.values[i].integer = value_statistics[i];
13787  }
13790 }
Definition: ovsdb-data.h:125
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: ovsdb-types.h:33
size_t ovsdb_datum_sort_unique(struct ovsdb_datum *datum, enum ovsdb_atomic_type key_type, enum ovsdb_atomic_type value_type)
Definition: ovsdb-data.c:1089
Definition: ovsdb-types.h:30
void * xmalloc(size_t size)
Definition: util.c:110
char * xstrdup(const char *s)
Definition: util.c:149
static bool inited
Definition: vswitch-idl.c:18
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:1096
struct ovsdb_idl_column ovsrec_mirror_columns[OVSREC_MIRROR_N_COLUMNS]
Definition: vswitch-idl.c:13792
void ovsdb_idl_txn_write(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column, struct ovsdb_datum *datum)
Definition: ovsdb-idl.c:2123
Definition: vswitch-idl.h:1141
static void ovsrec_mirror_unparse_external_ids ( struct ovsdb_idl_row row_)
static
12907 {
12908  struct ovsrec_mirror *row = ovsrec_mirror_cast(row_);
12909 
12910  ovs_assert(inited);
12911  smap_destroy(&row->external_ids);
12912 }
static struct ovsrec_mirror * ovsrec_mirror_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:70
#define ovs_assert(CONDITION)
Definition: util.h:73
static bool inited
Definition: vswitch-idl.c:18
struct smap external_ids
Definition: vswitch-idl.h:1099
void smap_destroy(struct smap *smap)
Definition: smap.c:39
Definition: vswitch-idl.h:1095
static void ovsrec_mirror_unparse_name ( struct ovsdb_idl_row *row  OVS_UNUSED)
static
12916 {
12917  /* Nothing to do. */
12918 }
static void ovsrec_mirror_unparse_output_port ( struct ovsdb_idl_row *row  OVS_UNUSED)
static
12922 {
12923  /* Nothing to do. */
12924 }
static void ovsrec_mirror_unparse_output_vlan ( struct ovsdb_idl_row row_)
static
12928 {
12929  struct ovsrec_mirror *row = ovsrec_mirror_cast(row_);
12930 
12931  ovs_assert(inited);
12932  free(row->output_vlan);
12933 }
static struct ovsrec_mirror * ovsrec_mirror_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:70
#define ovs_assert(CONDITION)
Definition: util.h:73
static bool inited
Definition: vswitch-idl.c:18
Definition: vswitch-idl.h:1095
int64_t * output_vlan
Definition: vswitch-idl.h:1108
static void ovsrec_mirror_unparse_select_all ( struct ovsdb_idl_row *row  OVS_UNUSED)
static
12937 {
12938  /* Nothing to do. */
12939 }
static void ovsrec_mirror_unparse_select_dst_port ( struct ovsdb_idl_row row_)
static
12943 {
12944  struct ovsrec_mirror *row = ovsrec_mirror_cast(row_);
12945 
12946  ovs_assert(inited);
12947  free(row->select_dst_port);
12948 }
static struct ovsrec_mirror * ovsrec_mirror_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:70
#define ovs_assert(CONDITION)
Definition: util.h:73
struct ovsrec_port ** select_dst_port
Definition: vswitch-idl.h:1115
static bool inited
Definition: vswitch-idl.c:18
Definition: vswitch-idl.h:1095
static void ovsrec_mirror_unparse_select_src_port ( struct ovsdb_idl_row row_)
static
12952 {
12953  struct ovsrec_mirror *row = ovsrec_mirror_cast(row_);
12954 
12955  ovs_assert(inited);
12956  free(row->select_src_port);
12957 }
static struct ovsrec_mirror * ovsrec_mirror_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:70
#define ovs_assert(CONDITION)
Definition: util.h:73
static bool inited
Definition: vswitch-idl.c:18
Definition: vswitch-idl.h:1095
struct ovsrec_port ** select_src_port
Definition: vswitch-idl.h:1119
static void ovsrec_mirror_unparse_select_vlan ( struct ovsdb_idl_row row_)
static
12961 {
12962  struct ovsrec_mirror *row = ovsrec_mirror_cast(row_);
12963 
12964  ovs_assert(inited);
12965  free(row->select_vlan);
12966 }
static struct ovsrec_mirror * ovsrec_mirror_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:70
#define ovs_assert(CONDITION)
Definition: util.h:73
int64_t * select_vlan
Definition: vswitch-idl.h:1123
static bool inited
Definition: vswitch-idl.c:18
Definition: vswitch-idl.h:1095
static void ovsrec_mirror_unparse_statistics ( struct ovsdb_idl_row row_)
static
12970 {
12971  struct ovsrec_mirror *row = ovsrec_mirror_cast(row_);
12972 
12973  ovs_assert(inited);
12974  free(row->key_statistics);
12975  free(row->value_statistics);
12976 }
static struct ovsrec_mirror * ovsrec_mirror_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:70
#define ovs_assert(CONDITION)
Definition: util.h:73
static bool inited
Definition: vswitch-idl.c:18
Definition: vswitch-idl.h:1095
char ** key_statistics
Definition: vswitch-idl.h:1127
int64_t * value_statistics
Definition: vswitch-idl.h:1128
void ovsrec_mirror_verify_external_ids ( const struct ovsrec_mirror row)
13070 {
13071  ovs_assert(inited);
13073 }
#define ovs_assert(CONDITION)
Definition: util.h:73
static bool inited
Definition: vswitch-idl.c:18
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:1096
Definition: vswitch-idl.h:1133
void ovsdb_idl_txn_verify(const struct ovsdb_idl_row *, const struct ovsdb_idl_column *)
Definition: ovsdb-idl.c:2168
struct ovsdb_idl_column ovsrec_mirror_columns[OVSREC_MIRROR_N_COLUMNS]
Definition: vswitch-idl.c:13792
void ovsrec_mirror_verify_name ( const struct ovsrec_mirror row)
13102 {
13103  ovs_assert(inited);
13105 }
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: vswitch-idl.h:1134
static bool inited
Definition: vswitch-idl.c:18
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:1096
void ovsdb_idl_txn_verify(const struct ovsdb_idl_row *, const struct ovsdb_idl_column *)
Definition: ovsdb-idl.c:2168
struct ovsdb_idl_column ovsrec_mirror_columns[OVSREC_MIRROR_N_COLUMNS]
Definition: vswitch-idl.c:13792
void ovsrec_mirror_verify_output_port ( const struct ovsrec_mirror row)
13134 {
13135  ovs_assert(inited);
13137 }
Definition: vswitch-idl.h:1135
#define ovs_assert(CONDITION)
Definition: util.h:73
static bool inited
Definition: vswitch-idl.c:18
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:1096
void ovsdb_idl_txn_verify(const struct ovsdb_idl_row *, const struct ovsdb_idl_column *)
Definition: ovsdb-idl.c:2168
struct ovsdb_idl_column ovsrec_mirror_columns[OVSREC_MIRROR_N_COLUMNS]
Definition: vswitch-idl.c:13792
void ovsrec_mirror_verify_output_vlan ( const struct ovsrec_mirror row)
13166 {
13167  ovs_assert(inited);
13169 }
Definition: vswitch-idl.h:1136
#define ovs_assert(CONDITION)
Definition: util.h:73
static bool inited
Definition: vswitch-idl.c:18
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:1096
void ovsdb_idl_txn_verify(const struct ovsdb_idl_row *, const struct ovsdb_idl_column *)
Definition: ovsdb-idl.c:2168
struct ovsdb_idl_column ovsrec_mirror_columns[OVSREC_MIRROR_N_COLUMNS]
Definition: vswitch-idl.c:13792
void ovsrec_mirror_verify_select_all ( const struct ovsrec_mirror row)
13198 {
13199  ovs_assert(inited);
13201 }
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: vswitch-idl.h:1137
static bool inited
Definition: vswitch-idl.c:18
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:1096
void ovsdb_idl_txn_verify(const struct ovsdb_idl_row *, const struct ovsdb_idl_column *)
Definition: ovsdb-idl.c:2168
struct ovsdb_idl_column ovsrec_mirror_columns[OVSREC_MIRROR_N_COLUMNS]
Definition: vswitch-idl.c:13792
void ovsrec_mirror_verify_select_dst_port ( const struct ovsrec_mirror row)
13230 {
13231  ovs_assert(inited);
13233 }
#define ovs_assert(CONDITION)
Definition: util.h:73
static bool inited
Definition: vswitch-idl.c:18
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:1096
Definition: vswitch-idl.h:1138
void ovsdb_idl_txn_verify(const struct ovsdb_idl_row *, const struct ovsdb_idl_column *)
Definition: ovsdb-idl.c:2168
struct ovsdb_idl_column ovsrec_mirror_columns[OVSREC_MIRROR_N_COLUMNS]
Definition: vswitch-idl.c:13792
void ovsrec_mirror_verify_select_src_port ( const struct ovsrec_mirror row)
13262 {
13263  ovs_assert(inited);
13265 }
#define ovs_assert(CONDITION)
Definition: util.h:73
static bool inited
Definition: vswitch-idl.c:18
Definition: vswitch-idl.h:1139
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:1096
void ovsdb_idl_txn_verify(const struct ovsdb_idl_row *, const struct ovsdb_idl_column *)
Definition: ovsdb-idl.c:2168
struct ovsdb_idl_column ovsrec_mirror_columns[OVSREC_MIRROR_N_COLUMNS]
Definition: vswitch-idl.c:13792
void ovsrec_mirror_verify_select_vlan ( const struct ovsrec_mirror row)
13294 {
13295  ovs_assert(inited);
13297 }
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: vswitch-idl.h:1140
static bool inited
Definition: vswitch-idl.c:18
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:1096
void ovsdb_idl_txn_verify(const struct ovsdb_idl_row *, const struct ovsdb_idl_column *)
Definition: ovsdb-idl.c:2168
struct ovsdb_idl_column ovsrec_mirror_columns[OVSREC_MIRROR_N_COLUMNS]
Definition: vswitch-idl.c:13792
void ovsrec_mirror_verify_statistics ( const struct ovsrec_mirror row)
13326 {
13327  ovs_assert(inited);
13329 }
#define ovs_assert(CONDITION)
Definition: util.h:73
static bool inited
Definition: vswitch-idl.c:18
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:1096
void ovsdb_idl_txn_verify(const struct ovsdb_idl_row *, const struct ovsdb_idl_column *)
Definition: ovsdb-idl.c:2168
struct ovsdb_idl_column ovsrec_mirror_columns[OVSREC_MIRROR_N_COLUMNS]
Definition: vswitch-idl.c:13792
Definition: vswitch-idl.h:1141
static struct ovsrec_netflow* ovsrec_netflow_cast ( const struct ovsdb_idl_row row)
static
77 {
78  return row ? CONTAINER_OF(row, struct ovsrec_netflow, header_) : NULL;
79 }
#define CONTAINER_OF(POINTER, STRUCT, MEMBER)
Definition: util.h:207
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:1096
Definition: vswitch-idl.h:1205
static void ovsrec_netflow_columns_init ( void  )
static
14635 {
14636  struct ovsdb_idl_column *c;
14637 
14638  /* Initialize ovsrec_netflow_col_active_timeout. */
14640  c->name = "active_timeout";
14642  c->type.key.u.integer.min = INT64_C(-1);
14644  c->type.n_min = 1;
14645  c->type.n_max = 1;
14646  c->mutable = true;
14649 
14650  /* Initialize ovsrec_netflow_col_add_id_to_interface. */
14652  c->name = "add_id_to_interface";
14655  c->type.n_min = 1;
14656  c->type.n_max = 1;
14657  c->mutable = true;
14660 
14661  /* Initialize ovsrec_netflow_col_engine_id. */
14663  c->name = "engine_id";
14665  c->type.key.u.integer.min = INT64_C(0);
14666  c->type.key.u.integer.max = INT64_C(255);
14668  c->type.n_min = 0;
14669  c->type.n_max = 1;
14670  c->mutable = true;
14673 
14674  /* Initialize ovsrec_netflow_col_engine_type. */
14676  c->name = "engine_type";
14678  c->type.key.u.integer.min = INT64_C(0);
14679  c->type.key.u.integer.max = INT64_C(255);
14681  c->type.n_min = 0;
14682  c->type.n_max = 1;
14683  c->mutable = true;
14686 
14687  /* Initialize ovsrec_netflow_col_external_ids. */
14689  c->name = "external_ids";
14691  c->type.key.u.string.minLen = 0;
14693  c->type.value.u.string.minLen = 0;
14694  c->type.n_min = 0;
14695  c->type.n_max = UINT_MAX;
14696  c->mutable = true;
14699 
14700  /* Initialize ovsrec_netflow_col_targets. */
14702  c->name = "targets";
14704  c->type.key.u.string.minLen = 0;
14706  c->type.n_min = 1;
14707  c->type.n_max = UINT_MAX;
14708  c->mutable = true;
14711 }
void(* unparse)(struct ovsdb_idl_row *)
Definition: ovsdb-idl-provider.h:46
Definition: ovsdb-idl-provider.h:41
struct ovsdb_base_type::@145::ovsdb_string_constraints string
#define ovsrec_netflow_col_add_id_to_interface
Definition: vswitch-idl.h:1242
#define ovsrec_netflow_col_engine_id
Definition: vswitch-idl.h:1240
static void ovsrec_netflow_unparse_active_timeout(struct ovsdb_idl_row *row OVS_UNUSED)
Definition: vswitch-idl.c:14013
void ovsdb_base_type_init(struct ovsdb_base_type *base, enum ovsdb_atomic_type type)
Definition: ovsdb-types.c:117
union ovsdb_base_type::@145 u
static void ovsrec_netflow_parse_targets(struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
Definition: vswitch-idl.c:13995
unsigned int n_min
Definition: ovsdb-types.h:136
struct ovsdb_base_type key
Definition: ovsdb-types.h:134
void(* parse)(struct ovsdb_idl_row *, const struct ovsdb_datum *)
Definition: ovsdb-idl-provider.h:45
unsigned int n_max
Definition: ovsdb-types.h:137
Definition: ovsdb-types.h:33
struct ovsdb_base_type value
Definition: ovsdb-types.h:135
char * name
Definition: ovsdb-idl-provider.h:42
Definition: ovsdb-types.h:30
static void ovsrec_netflow_parse_engine_type(struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
Definition: vswitch-idl.c:13961
static void ovsrec_netflow_parse_external_ids(struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
Definition: vswitch-idl.c:13980
static void ovsrec_netflow_unparse_engine_id(struct ovsdb_idl_row *row_)
Definition: vswitch-idl.c:14025
static void ovsrec_netflow_unparse_targets(struct ovsdb_idl_row *row_)
Definition: vswitch-idl.c:14052
#define ovsrec_netflow_col_external_ids
Definition: vswitch-idl.h:1243
static void ovsrec_netflow_unparse_external_ids(struct ovsdb_idl_row *row_)
Definition: vswitch-idl.c:14043
struct ovsdb_type type
Definition: ovsdb-idl-provider.h:43
static void ovsrec_netflow_parse_engine_id(struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
Definition: vswitch-idl.c:13942
static void ovsrec_netflow_parse_add_id_to_interface(struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
Definition: vswitch-idl.c:13929
static void ovsrec_netflow_parse_active_timeout(struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
Definition: vswitch-idl.c:13916
bool mutable
Definition: ovsdb-idl-provider.h:44
#define ovsrec_netflow_col_targets
Definition: vswitch-idl.h:1244
Definition: ovsdb-types.h:29
struct ovsdb_base_type::@145::ovsdb_integer_constraints integer
#define ovsrec_netflow_col_active_timeout
Definition: vswitch-idl.h:1241
static void ovsrec_netflow_unparse_add_id_to_interface(struct ovsdb_idl_row *row OVS_UNUSED)
Definition: vswitch-idl.c:14019
static void ovsrec_netflow_unparse_engine_type(struct ovsdb_idl_row *row_)
Definition: vswitch-idl.c:14034
Definition: ovsdb-types.h:32
#define ovsrec_netflow_col_engine_type
Definition: vswitch-idl.h:1245
void ovsrec_netflow_delete ( const struct ovsrec_netflow row)
14108 {
14110 }
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:1206
void ovsdb_idl_txn_delete(const struct ovsdb_idl_row *row_)
Definition: ovsdb-idl.c:2208
const struct ovsrec_netflow* ovsrec_netflow_first ( const struct ovsdb_idl idl)
14090 {
14092 }
struct ovsdb_idl_table_class ovsrec_table_classes[OVSREC_N_TABLES]
Definition: vswitch-idl.c:21482
static struct ovsrec_netflow * ovsrec_netflow_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:76
Definition: vswitch-idl.h:1923
const struct ovsdb_idl_row * ovsdb_idl_first_row(const struct ovsdb_idl *idl, const struct ovsdb_idl_table_class *table_class)
Definition: ovsdb-idl.c:1290
const struct ovsdb_datum* ovsrec_netflow_get_active_timeout ( const struct ovsrec_netflow row,
enum ovsdb_atomic_type key_type  OVS_UNUSED 
)
14339 {
14340  ovs_assert(key_type == OVSDB_TYPE_INTEGER);
14342 }
#define ovs_assert(CONDITION)
Definition: util.h:73
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:1206
Definition: ovsdb-types.h:30
const struct ovsdb_datum * ovsdb_idl_read(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column)
Definition: ovsdb-idl.c:1320
#define ovsrec_netflow_col_active_timeout
Definition: vswitch-idl.h:1241
const struct ovsdb_datum* ovsrec_netflow_get_add_id_to_interface ( const struct ovsrec_netflow row,
enum ovsdb_atomic_type key_type  OVS_UNUSED 
)
14366 {
14367  ovs_assert(key_type == OVSDB_TYPE_BOOLEAN);
14369 }
#define ovsrec_netflow_col_add_id_to_interface
Definition: vswitch-idl.h:1242
#define ovs_assert(CONDITION)
Definition: util.h:73
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:1206
const struct ovsdb_datum * ovsdb_idl_read(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column)
Definition: ovsdb-idl.c:1320
Definition: ovsdb-types.h:32
const struct ovsdb_datum* ovsrec_netflow_get_engine_id ( const struct ovsrec_netflow row,
enum ovsdb_atomic_type key_type  OVS_UNUSED 
)
14393 {
14394  ovs_assert(key_type == OVSDB_TYPE_INTEGER);
14396 }
#define ovs_assert(CONDITION)
Definition: util.h:73
#define ovsrec_netflow_col_engine_id
Definition: vswitch-idl.h:1240
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:1206
Definition: ovsdb-types.h:30
const struct ovsdb_datum * ovsdb_idl_read(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column)
Definition: ovsdb-idl.c:1320
const struct ovsdb_datum* ovsrec_netflow_get_engine_type ( const struct ovsrec_netflow row,
enum ovsdb_atomic_type key_type  OVS_UNUSED 
)
14420 {
14421  ovs_assert(key_type == OVSDB_TYPE_INTEGER);
14423 }
#define ovs_assert(CONDITION)
Definition: util.h:73
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:1206
Definition: ovsdb-types.h:30
const struct ovsdb_datum * ovsdb_idl_read(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column)
Definition: ovsdb-idl.c:1320
#define ovsrec_netflow_col_engine_type
Definition: vswitch-idl.h:1245
const struct ovsdb_datum* ovsrec_netflow_get_external_ids ( const struct ovsrec_netflow row,
enum ovsdb_atomic_type key_type  OVS_UNUSED,
enum ovsdb_atomic_type value_type  OVS_UNUSED 
)
14449 {
14450  ovs_assert(key_type == OVSDB_TYPE_STRING);
14451  ovs_assert(value_type == OVSDB_TYPE_STRING);
14453 }
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: ovsdb-types.h:33
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:1206
#define ovsrec_netflow_col_external_ids
Definition: vswitch-idl.h:1243
const struct ovsdb_datum * ovsdb_idl_read(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column)
Definition: ovsdb-idl.c:1320
const struct ovsrec_netflow* ovsrec_netflow_get_for_uuid ( const struct ovsdb_idl idl,
const struct uuid uuid 
)
14078 {
14080 }
const struct ovsdb_idl_row * ovsdb_idl_get_row_for_uuid(const struct ovsdb_idl *idl, const struct ovsdb_idl_table_class *tc, const struct uuid *uuid)
Definition: ovsdb-idl.c:1262
struct ovsdb_idl_table_class ovsrec_table_classes[OVSREC_N_TABLES]
Definition: vswitch-idl.c:21482
static struct ovsrec_netflow * ovsrec_netflow_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:76
Definition: vswitch-idl.h:1923
const struct ovsdb_datum* ovsrec_netflow_get_targets ( const struct ovsrec_netflow row,
enum ovsdb_atomic_type key_type  OVS_UNUSED 
)
14477 {
14478  ovs_assert(key_type == OVSDB_TYPE_STRING);
14480 }
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: ovsdb-types.h:33
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:1206
#define ovsrec_netflow_col_targets
Definition: vswitch-idl.h:1244
const struct ovsdb_datum * ovsdb_idl_read(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column)
Definition: ovsdb-idl.c:1320
void ovsrec_netflow_init ( struct ovsrec_netflow row)
14069 {
14070  memset(row, 0, sizeof *row);
14071  smap_init(&row->external_ids);
14072 }
void smap_init(struct smap *smap)
Definition: smap.c:33
struct smap external_ids
Definition: vswitch-idl.h:1223
static void ovsrec_netflow_init__ ( struct ovsdb_idl_row row)
static
14062 {
14064 }
static struct ovsrec_netflow * ovsrec_netflow_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:76
void ovsrec_netflow_init(struct ovsrec_netflow *row)
Definition: vswitch-idl.c:14068
struct ovsrec_netflow* ovsrec_netflow_insert ( struct ovsdb_idl_txn txn)
14121 {
14123 }
struct ovsdb_idl_table_class ovsrec_table_classes[OVSREC_N_TABLES]
Definition: vswitch-idl.c:21482
static struct ovsrec_netflow * ovsrec_netflow_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:76
Definition: vswitch-idl.h:1923
const struct ovsdb_idl_row * ovsdb_idl_txn_insert(struct ovsdb_idl_txn *txn, const struct ovsdb_idl_table_class *class, const struct uuid *uuid)
Definition: ovsdb-idl.c:2247
const struct ovsrec_netflow* ovsrec_netflow_next ( const struct ovsrec_netflow row)
14098 {
14100 }
static struct ovsrec_netflow * ovsrec_netflow_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:76
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:1206
const struct ovsdb_idl_row * ovsdb_idl_next_row(const struct ovsdb_idl_row *row)
Definition: ovsdb-idl.c:1301
static void ovsrec_netflow_parse_active_timeout ( struct ovsdb_idl_row row_,
const struct ovsdb_datum datum 
)
static
13917 {
13918  struct ovsrec_netflow *row = ovsrec_netflow_cast(row_);
13919 
13920  ovs_assert(inited);
13921  if (datum->n >= 1) {
13922  row->active_timeout = datum->keys[0].integer;
13923  } else {
13924  row->active_timeout = 0;
13925  }
13926 }
int64_t integer
Definition: ovsdb-data.h:30
static struct ovsrec_netflow * ovsrec_netflow_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:76
#define ovs_assert(CONDITION)
Definition: util.h:73
union ovsdb_atom * keys
Definition: ovsdb-data.h:127
static bool inited
Definition: vswitch-idl.c:18
unsigned int n
Definition: ovsdb-data.h:126
int64_t active_timeout
Definition: vswitch-idl.h:1209
Definition: vswitch-idl.h:1205
static void ovsrec_netflow_parse_add_id_to_interface ( struct ovsdb_idl_row row_,
const struct ovsdb_datum datum 
)
static
13930 {
13931  struct ovsrec_netflow *row = ovsrec_netflow_cast(row_);
13932 
13933  ovs_assert(inited);
13934  if (datum->n >= 1) {
13935  row->add_id_to_interface = datum->keys[0].boolean;
13936  } else {
13937  row->add_id_to_interface = false;
13938  }
13939 }
static struct ovsrec_netflow * ovsrec_netflow_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:76
#define ovs_assert(CONDITION)
Definition: util.h:73
bool add_id_to_interface
Definition: vswitch-idl.h:1212
union ovsdb_atom * keys
Definition: ovsdb-data.h:127
bool boolean
Definition: ovsdb-data.h:32
static bool inited
Definition: vswitch-idl.c:18
unsigned int n
Definition: ovsdb-data.h:126
Definition: vswitch-idl.h:1205
static void ovsrec_netflow_parse_engine_id ( struct ovsdb_idl_row row_,
const struct ovsdb_datum datum 
)
static
13943 {
13944  struct ovsrec_netflow *row = ovsrec_netflow_cast(row_);
13945  size_t n = MIN(1, datum->n);
13946  size_t i;
13947 
13948  ovs_assert(inited);
13949  row->engine_id = NULL;
13950  row->n_engine_id = 0;
13951  for (i = 0; i < n; i++) {
13952  if (!row->n_engine_id) {
13953  row->engine_id = xmalloc(n * sizeof *row->engine_id);
13954  }
13955  row->engine_id[row->n_engine_id] = datum->keys[i].integer;
13956  row->n_engine_id++;
13957  }
13958 }
int64_t integer
Definition: ovsdb-data.h:30
static struct ovsrec_netflow * ovsrec_netflow_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:76
#define ovs_assert(CONDITION)
Definition: util.h:73
union ovsdb_atom * keys
Definition: ovsdb-data.h:127
size_t n_engine_id
Definition: vswitch-idl.h:1216
void * xmalloc(size_t size)
Definition: util.c:110
static bool inited
Definition: vswitch-idl.c:18
unsigned int n
Definition: ovsdb-data.h:126
#define MIN(_a, _b)
Definition: Util.h:68
int64_t * engine_id
Definition: vswitch-idl.h:1215
Definition: vswitch-idl.h:1205
static void ovsrec_netflow_parse_engine_type ( struct ovsdb_idl_row row_,
const struct ovsdb_datum datum 
)
static
13962 {
13963  struct ovsrec_netflow *row = ovsrec_netflow_cast(row_);
13964  size_t n = MIN(1, datum->n);
13965  size_t i;
13966 
13967  ovs_assert(inited);
13968  row->engine_type = NULL;
13969  row->n_engine_type = 0;
13970  for (i = 0; i < n; i++) {
13971  if (!row->n_engine_type) {
13972  row->engine_type = xmalloc(n * sizeof *row->engine_type);
13973  }
13974  row->engine_type[row->n_engine_type] = datum->keys[i].integer;
13975  row->n_engine_type++;
13976  }
13977 }
size_t n_engine_type
Definition: vswitch-idl.h:1220
int64_t integer
Definition: ovsdb-data.h:30
static struct ovsrec_netflow * ovsrec_netflow_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:76
#define ovs_assert(CONDITION)
Definition: util.h:73
union ovsdb_atom * keys
Definition: ovsdb-data.h:127
int64_t * engine_type
Definition: vswitch-idl.h:1219
void * xmalloc(size_t size)
Definition: util.c:110
static bool inited
Definition: vswitch-idl.c:18
unsigned int n
Definition: ovsdb-data.h:126
#define MIN(_a, _b)
Definition: Util.h:68
Definition: vswitch-idl.h:1205
static void ovsrec_netflow_parse_external_ids ( struct ovsdb_idl_row row_,
const struct ovsdb_datum datum 
)
static
13981 {
13982  struct ovsrec_netflow *row = ovsrec_netflow_cast(row_);
13983  size_t i;
13984 
13985  ovs_assert(inited);
13986  smap_init(&row->external_ids);
13987  for (i = 0; i < datum->n; i++) {
13988  smap_add(&row->external_ids,
13989  datum->keys[i].string,
13990  datum->values[i].string);
13991  }
13992 }
static struct ovsrec_netflow * ovsrec_netflow_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:76
#define ovs_assert(CONDITION)
Definition: util.h:73
void smap_init(struct smap *smap)
Definition: smap.c:33
char * string
Definition: ovsdb-data.h:33
struct smap_node * smap_add(struct smap *smap, const char *key, const char *value)
Definition: smap.c:50
union ovsdb_atom * keys
Definition: ovsdb-data.h:127
struct smap external_ids
Definition: vswitch-idl.h:1223
union ovsdb_atom * values
Definition: ovsdb-data.h:128
static bool inited
Definition: vswitch-idl.c:18
unsigned int n
Definition: ovsdb-data.h:126
Definition: vswitch-idl.h:1205
static void ovsrec_netflow_parse_targets ( struct ovsdb_idl_row row_,
const struct ovsdb_datum datum 
)
static
13996 {
13997  struct ovsrec_netflow *row = ovsrec_netflow_cast(row_);
13998  size_t i;
13999 
14000  ovs_assert(inited);
14001  row->targets = NULL;
14002  row->n_targets = 0;
14003  for (i = 0; i < datum->n; i++) {
14004  if (!row->n_targets) {
14005  row->targets = xmalloc(datum->n * sizeof *row->targets);
14006  }
14007  row->targets[row->n_targets] = datum->keys[i].string;
14008  row->n_targets++;
14009  }
14010 }
static struct ovsrec_netflow * ovsrec_netflow_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:76
#define ovs_assert(CONDITION)
Definition: util.h:73
char * string
Definition: ovsdb-data.h:33
union ovsdb_atom * keys
Definition: ovsdb-data.h:127
void * xmalloc(size_t size)
Definition: util.c:110
static bool inited
Definition: vswitch-idl.c:18
unsigned int n
Definition: ovsdb-data.h:126
size_t n_targets
Definition: vswitch-idl.h:1227
Definition: vswitch-idl.h:1205
char ** targets
Definition: vswitch-idl.h:1226
void ovsrec_netflow_set_active_timeout ( const struct ovsrec_netflow row,
int64_t  active_timeout 
)
14490 {
14491  struct ovsdb_datum datum;
14492  union ovsdb_atom key;
14493 
14494  ovs_assert(inited);
14495  datum.n = 1;
14496  datum.keys = &key;
14497  key.integer = active_timeout;
14498  datum.values = NULL;
14500 }
Definition: ovsdb-data.h:125
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: ovsdb-data.h:29
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:1206
static bool inited
Definition: vswitch-idl.c:18
Definition: vswitch-idl.h:1231
static struct aes128 key
Definition: uuid.c:34
struct ovsdb_idl_column ovsrec_netflow_columns[OVSREC_NETFLOW_N_COLUMNS]
Definition: vswitch-idl.c:14631
void ovsdb_idl_txn_write_clone(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column, const struct ovsdb_datum *datum)
Definition: ovsdb-idl.c:2131
void ovsrec_netflow_set_add_id_to_interface ( const struct ovsrec_netflow row,
bool  add_id_to_interface 
)
14508 {
14509  struct ovsdb_datum datum;
14510  union ovsdb_atom key;
14511 
14512  ovs_assert(inited);
14513  datum.n = 1;
14514  datum.keys = &key;
14515  key.boolean = add_id_to_interface;
14516  datum.values = NULL;
14518 }
Definition: ovsdb-data.h:125
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: ovsdb-data.h:29
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:1206
Definition: vswitch-idl.h:1232
static bool inited
Definition: vswitch-idl.c:18
static struct aes128 key
Definition: uuid.c:34
struct ovsdb_idl_column ovsrec_netflow_columns[OVSREC_NETFLOW_N_COLUMNS]
Definition: vswitch-idl.c:14631
void ovsdb_idl_txn_write_clone(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column, const struct ovsdb_datum *datum)
Definition: ovsdb-idl.c:2131
void ovsrec_netflow_set_engine_id ( const struct ovsrec_netflow row,
const int64_t engine_id,
size_t  n_engine_id 
)
14531 {
14532  struct ovsdb_datum datum;
14533  union ovsdb_atom key;
14534 
14535  ovs_assert(inited);
14536  if (n_engine_id) {
14537  datum.n = 1;
14538  datum.keys = &key;
14539  key.integer = *engine_id;
14540  } else {
14541  datum.n = 0;
14542  datum.keys = NULL;
14543  }
14544  datum.values = NULL;
14546 }
Definition: ovsdb-data.h:125
Definition: vswitch-idl.h:1233
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: ovsdb-data.h:29
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:1206
static bool inited
Definition: vswitch-idl.c:18
static struct aes128 key
Definition: uuid.c:34
struct ovsdb_idl_column ovsrec_netflow_columns[OVSREC_NETFLOW_N_COLUMNS]
Definition: vswitch-idl.c:14631
void ovsdb_idl_txn_write_clone(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column, const struct ovsdb_datum *datum)
Definition: ovsdb-idl.c:2131
void ovsrec_netflow_set_engine_type ( const struct ovsrec_netflow row,
const int64_t engine_type,
size_t  n_engine_type 
)
14559 {
14560  struct ovsdb_datum datum;
14561  union ovsdb_atom key;
14562 
14563  ovs_assert(inited);
14564  if (n_engine_type) {
14565  datum.n = 1;
14566  datum.keys = &key;
14567  key.integer = *engine_type;
14568  } else {
14569  datum.n = 0;
14570  datum.keys = NULL;
14571  }
14572  datum.values = NULL;
14574 }
Definition: ovsdb-data.h:125
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: ovsdb-data.h:29
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:1206
static bool inited
Definition: vswitch-idl.c:18
Definition: vswitch-idl.h:1234
static struct aes128 key
Definition: uuid.c:34
struct ovsdb_idl_column ovsrec_netflow_columns[OVSREC_NETFLOW_N_COLUMNS]
Definition: vswitch-idl.c:14631
void ovsdb_idl_txn_write_clone(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column, const struct ovsdb_datum *datum)
Definition: ovsdb-idl.c:2131
void ovsrec_netflow_set_external_ids ( const struct ovsrec_netflow row,
const struct smap external_ids 
)
14582 {
14583  struct ovsdb_datum datum;
14584 
14585  ovs_assert(inited);
14586  if (external_ids) {
14587  struct smap_node *node;
14588  size_t i;
14589 
14590  datum.n = smap_count(external_ids);
14591  datum.keys = xmalloc(datum.n * sizeof *datum.keys);
14592  datum.values = xmalloc(datum.n * sizeof *datum.values);
14593 
14594  i = 0;
14595  SMAP_FOR_EACH (node, external_ids) {
14596  datum.keys[i].string = xstrdup(node->key);
14597  datum.values[i].string = xstrdup(node->value);
14598  i++;
14599  }
14601  } else {
14602  ovsdb_datum_init_empty(&datum);
14603  }
14606  &datum);
14607 }
char * value
Definition: smap.h:31
Definition: ovsdb-data.h:125
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: ovsdb-types.h:33
size_t ovsdb_datum_sort_unique(struct ovsdb_datum *datum, enum ovsdb_atomic_type key_type, enum ovsdb_atomic_type value_type)
Definition: ovsdb-data.c:1089
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:1206
#define SMAP_FOR_EACH(SMAP_NODE, SMAP)
Definition: smap.h:36
void * xmalloc(size_t size)
Definition: util.c:110
char * xstrdup(const char *s)
Definition: util.c:149
static bool inited
Definition: vswitch-idl.c:18
Definition: vswitch-idl.h:1235
struct hmap_node node
Definition: smap.h:29
Definition: smap.h:28
size_t smap_count(const struct smap *smap)
Definition: smap.c:238
void ovsdb_datum_init_empty(struct ovsdb_datum *datum)
Definition: ovsdb-data.c:835
void ovsdb_idl_txn_write(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column, struct ovsdb_datum *datum)
Definition: ovsdb-idl.c:2123
char * key
Definition: smap.h:30
struct ovsdb_idl_column ovsrec_netflow_columns[OVSREC_NETFLOW_N_COLUMNS]
Definition: vswitch-idl.c:14631
void ovsrec_netflow_set_targets ( const struct ovsrec_netflow row,
const char **  targets,
size_t  n_targets 
)
14616 {
14617  struct ovsdb_datum datum;
14618  size_t i;
14619 
14620  ovs_assert(inited);
14621  datum.n = n_targets;
14622  datum.keys = n_targets ? xmalloc(n_targets * sizeof *datum.keys) : NULL;
14623  datum.values = NULL;
14624  for (i = 0; i < n_targets; i++) {
14625  datum.keys[i].string = xstrdup(targets[i]);
14626  }
14629 }
Definition: ovsdb-data.h:125
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: ovsdb-types.h:33
size_t ovsdb_datum_sort_unique(struct ovsdb_datum *datum, enum ovsdb_atomic_type key_type, enum ovsdb_atomic_type value_type)
Definition: ovsdb-data.c:1089
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:1206
Definition: vswitch-idl.h:1236
void * xmalloc(size_t size)
Definition: util.c:110
char * xstrdup(const char *s)
Definition: util.c:149
static bool inited
Definition: vswitch-idl.c:18
Definition: ovsdb-types.h:29
void ovsdb_idl_txn_write(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column, struct ovsdb_datum *datum)
Definition: ovsdb-idl.c:2123
struct ovsdb_idl_column ovsrec_netflow_columns[OVSREC_NETFLOW_N_COLUMNS]
Definition: vswitch-idl.c:14631
static void ovsrec_netflow_unparse_active_timeout ( struct ovsdb_idl_row *row  OVS_UNUSED)
static
14014 {
14015  /* Nothing to do. */
14016 }
static void ovsrec_netflow_unparse_add_id_to_interface ( struct ovsdb_idl_row *row  OVS_UNUSED)
static
14020 {
14021  /* Nothing to do. */
14022 }
static void ovsrec_netflow_unparse_engine_id ( struct ovsdb_idl_row row_)
static
14026 {
14027  struct ovsrec_netflow *row = ovsrec_netflow_cast(row_);
14028 
14029  ovs_assert(inited);
14030  free(row->engine_id);
14031 }
static struct ovsrec_netflow * ovsrec_netflow_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:76
#define ovs_assert(CONDITION)
Definition: util.h:73
static bool inited
Definition: vswitch-idl.c:18
int64_t * engine_id
Definition: vswitch-idl.h:1215
Definition: vswitch-idl.h:1205
static void ovsrec_netflow_unparse_engine_type ( struct ovsdb_idl_row row_)
static
14035 {
14036  struct ovsrec_netflow *row = ovsrec_netflow_cast(row_);
14037 
14038  ovs_assert(inited);
14039  free(row->engine_type);
14040 }
static struct ovsrec_netflow * ovsrec_netflow_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:76
#define ovs_assert(CONDITION)
Definition: util.h:73
int64_t * engine_type
Definition: vswitch-idl.h:1219
static bool inited
Definition: vswitch-idl.c:18
Definition: vswitch-idl.h:1205
static void ovsrec_netflow_unparse_external_ids ( struct ovsdb_idl_row row_)
static
14044 {
14045  struct ovsrec_netflow *row = ovsrec_netflow_cast(row_);
14046 
14047  ovs_assert(inited);
14048  smap_destroy(&row->external_ids);
14049 }
static struct ovsrec_netflow * ovsrec_netflow_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:76
#define ovs_assert(CONDITION)
Definition: util.h:73
struct smap external_ids
Definition: vswitch-idl.h:1223
static bool inited
Definition: vswitch-idl.c:18
void smap_destroy(struct smap *smap)
Definition: smap.c:39
Definition: vswitch-idl.h:1205
static void ovsrec_netflow_unparse_targets ( struct ovsdb_idl_row row_)
static
14053 {
14054  struct ovsrec_netflow *row = ovsrec_netflow_cast(row_);
14055 
14056  ovs_assert(inited);
14057  free(row->targets);
14058 }
static struct ovsrec_netflow * ovsrec_netflow_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:76
#define ovs_assert(CONDITION)
Definition: util.h:73
static bool inited
Definition: vswitch-idl.c:18
Definition: vswitch-idl.h:1205
char ** targets
Definition: vswitch-idl.h:1226
void ovsrec_netflow_verify_active_timeout ( const struct ovsrec_netflow row)
14152 {
14153  ovs_assert(inited);
14155 }
#define ovs_assert(CONDITION)
Definition: util.h:73
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:1206
static bool inited
Definition: vswitch-idl.c:18
void ovsdb_idl_txn_verify(const struct ovsdb_idl_row *, const struct ovsdb_idl_column *)
Definition: ovsdb-idl.c:2168
Definition: vswitch-idl.h:1231
struct ovsdb_idl_column ovsrec_netflow_columns[OVSREC_NETFLOW_N_COLUMNS]
Definition: vswitch-idl.c:14631
void ovsrec_netflow_verify_add_id_to_interface ( const struct ovsrec_netflow row)
14184 {
14185  ovs_assert(inited);
14187 }
#define ovs_assert(CONDITION)
Definition: util.h:73
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:1206
Definition: vswitch-idl.h:1232
static bool inited
Definition: vswitch-idl.c:18
void ovsdb_idl_txn_verify(const struct ovsdb_idl_row *, const struct ovsdb_idl_column *)
Definition: ovsdb-idl.c:2168
struct ovsdb_idl_column ovsrec_netflow_columns[OVSREC_NETFLOW_N_COLUMNS]
Definition: vswitch-idl.c:14631
void ovsrec_netflow_verify_engine_id ( const struct ovsrec_netflow row)
14216 {
14217  ovs_assert(inited);
14219 }
Definition: vswitch-idl.h:1233
#define ovs_assert(CONDITION)
Definition: util.h:73
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:1206
static bool inited
Definition: vswitch-idl.c:18
void ovsdb_idl_txn_verify(const struct ovsdb_idl_row *, const struct ovsdb_idl_column *)
Definition: ovsdb-idl.c:2168
struct ovsdb_idl_column ovsrec_netflow_columns[OVSREC_NETFLOW_N_COLUMNS]
Definition: vswitch-idl.c:14631
void ovsrec_netflow_verify_engine_type ( const struct ovsrec_netflow row)
14248 {
14249  ovs_assert(inited);
14251 }
#define ovs_assert(CONDITION)
Definition: util.h:73
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:1206
static bool inited
Definition: vswitch-idl.c:18
Definition: vswitch-idl.h:1234
void ovsdb_idl_txn_verify(const struct ovsdb_idl_row *, const struct ovsdb_idl_column *)
Definition: ovsdb-idl.c:2168
struct ovsdb_idl_column ovsrec_netflow_columns[OVSREC_NETFLOW_N_COLUMNS]
Definition: vswitch-idl.c:14631
void ovsrec_netflow_verify_external_ids ( const struct ovsrec_netflow row)
14280 {
14281  ovs_assert(inited);
14283 }
#define ovs_assert(CONDITION)
Definition: util.h:73
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:1206
static bool inited
Definition: vswitch-idl.c:18
Definition: vswitch-idl.h:1235
void ovsdb_idl_txn_verify(const struct ovsdb_idl_row *, const struct ovsdb_idl_column *)
Definition: ovsdb-idl.c:2168
struct ovsdb_idl_column ovsrec_netflow_columns[OVSREC_NETFLOW_N_COLUMNS]
Definition: vswitch-idl.c:14631
void ovsrec_netflow_verify_targets ( const struct ovsrec_netflow row)
14312 {
14313  ovs_assert(inited);
14315 }
#define ovs_assert(CONDITION)
Definition: util.h:73
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:1206
Definition: vswitch-idl.h:1236
static bool inited
Definition: vswitch-idl.c:18
void ovsdb_idl_txn_verify(const struct ovsdb_idl_row *, const struct ovsdb_idl_column *)
Definition: ovsdb-idl.c:2168
struct ovsdb_idl_column ovsrec_netflow_columns[OVSREC_NETFLOW_N_COLUMNS]
Definition: vswitch-idl.c:14631
static struct ovsrec_open_vswitch* ovsrec_open_vswitch_cast ( const struct ovsdb_idl_row row)
static
83 {
84  return row ? CONTAINER_OF(row, struct ovsrec_open_vswitch, header_) : NULL;
85 }
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:1206
#define CONTAINER_OF(POINTER, STRUCT, MEMBER)
Definition: util.h:207
Definition: vswitch-idl.h:1288
static void ovsrec_open_vswitch_columns_init ( void  )
static
16292 {
16293  struct ovsdb_idl_column *c;
16294 
16295  /* Initialize ovsrec_open_vswitch_col_bridges. */
16297  c->name = "bridges";
16299  c->type.key.u.uuid.refTableName = "Bridge";
16300  c->type.key.u.uuid.refType = OVSDB_REF_STRONG;
16302  c->type.n_min = 0;
16303  c->type.n_max = UINT_MAX;
16304  c->mutable = true;
16307 
16308  /* Initialize ovsrec_open_vswitch_col_cur_cfg. */
16310  c->name = "cur_cfg";
16313  c->type.n_min = 1;
16314  c->type.n_max = 1;
16315  c->mutable = true;
16318 
16319  /* Initialize ovsrec_open_vswitch_col_datapath_types. */
16321  c->name = "datapath_types";
16323  c->type.key.u.string.minLen = 0;
16325  c->type.n_min = 0;
16326  c->type.n_max = UINT_MAX;
16327  c->mutable = true;
16330 
16331  /* Initialize ovsrec_open_vswitch_col_db_version. */
16333  c->name = "db_version";
16335  c->type.key.u.string.minLen = 0;
16337  c->type.n_min = 0;
16338  c->type.n_max = 1;
16339  c->mutable = true;
16342 
16343  /* Initialize ovsrec_open_vswitch_col_external_ids. */
16345  c->name = "external_ids";
16347  c->type.key.u.string.minLen = 0;
16349  c->type.value.u.string.minLen = 0;
16350  c->type.n_min = 0;
16351  c->type.n_max = UINT_MAX;
16352  c->mutable = true;
16355 
16356  /* Initialize ovsrec_open_vswitch_col_iface_types. */
16358  c->name = "iface_types";
16360  c->type.key.u.string.minLen = 0;
16362  c->type.n_min = 0;
16363  c->type.n_max = UINT_MAX;
16364  c->mutable = true;
16367 
16368  /* Initialize ovsrec_open_vswitch_col_manager_options. */
16370  c->name = "manager_options";
16372  c->type.key.u.uuid.refTableName = "Manager";
16373  c->type.key.u.uuid.refType = OVSDB_REF_STRONG;
16375  c->type.n_min = 0;
16376  c->type.n_max = UINT_MAX;
16377  c->mutable = true;
16380 
16381  /* Initialize ovsrec_open_vswitch_col_next_cfg. */
16383  c->name = "next_cfg";
16386  c->type.n_min = 1;
16387  c->type.n_max = 1;
16388  c->mutable = true;
16391 
16392  /* Initialize ovsrec_open_vswitch_col_other_config. */
16394  c->name = "other_config";
16396  c->type.key.u.string.minLen = 0;
16398  c->type.value.u.string.minLen = 0;
16399  c->type.n_min = 0;
16400  c->type.n_max = UINT_MAX;
16401  c->mutable = true;
16404 
16405  /* Initialize ovsrec_open_vswitch_col_ovs_version. */
16407  c->name = "ovs_version";
16409  c->type.key.u.string.minLen = 0;
16411  c->type.n_min = 0;
16412  c->type.n_max = 1;
16413  c->mutable = true;
16416 
16417  /* Initialize ovsrec_open_vswitch_col_ssl. */
16419  c->name = "ssl";
16421  c->type.key.u.uuid.refTableName = "SSL";
16422  c->type.key.u.uuid.refType = OVSDB_REF_STRONG;
16424  c->type.n_min = 0;
16425  c->type.n_max = 1;
16426  c->mutable = true;
16429 
16430  /* Initialize ovsrec_open_vswitch_col_statistics. */
16432  c->name = "statistics";
16434  c->type.key.u.string.minLen = 0;
16436  c->type.value.u.string.minLen = 0;
16437  c->type.n_min = 0;
16438  c->type.n_max = UINT_MAX;
16439  c->mutable = true;
16442 
16443  /* Initialize ovsrec_open_vswitch_col_system_type. */
16445  c->name = "system_type";
16447  c->type.key.u.string.minLen = 0;
16449  c->type.n_min = 0;
16450  c->type.n_max = 1;
16451  c->mutable = true;
16454 
16455  /* Initialize ovsrec_open_vswitch_col_system_version. */
16457  c->name = "system_version";
16459  c->type.key.u.string.minLen = 0;
16461  c->type.n_min = 0;
16462  c->type.n_max = 1;
16463  c->mutable = true;
16466 }
void(* unparse)(struct ovsdb_idl_row *)
Definition: ovsdb-idl-provider.h:46
Definition: ovsdb-idl-provider.h:41
#define ovsrec_open_vswitch_col_external_ids
Definition: vswitch-idl.h:1365
#define ovsrec_open_vswitch_col_db_version
Definition: vswitch-idl.h:1356
#define ovsrec_open_vswitch_col_bridges
Definition: vswitch-idl.h:1364
struct ovsdb_base_type::@145::ovsdb_string_constraints string
static void ovsrec_open_vswitch_parse_ssl(struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
Definition: vswitch-idl.c:14876
static void ovsrec_open_vswitch_unparse_datapath_types(struct ovsdb_idl_row *row_)
Definition: vswitch-idl.c:14945
#define ovsrec_open_vswitch_col_system_type
Definition: vswitch-idl.h:1366
#define ovsrec_open_vswitch_col_system_version
Definition: vswitch-idl.h:1367
static void ovsrec_open_vswitch_parse_external_ids(struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
Definition: vswitch-idl.c:14781
void ovsdb_base_type_init(struct ovsdb_base_type *base, enum ovsdb_atomic_type type)
Definition: ovsdb-types.c:117
union ovsdb_base_type::@145 u
static void ovsrec_open_vswitch_parse_statistics(struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
Definition: vswitch-idl.c:14889
static void ovsrec_open_vswitch_unparse_external_ids(struct ovsdb_idl_row *row_)
Definition: vswitch-idl.c:14960
static void ovsrec_open_vswitch_unparse_next_cfg(struct ovsdb_idl_row *row OVS_UNUSED)
Definition: vswitch-idl.c:14987
unsigned int n_min
Definition: ovsdb-types.h:136
struct ovsdb_base_type key
Definition: ovsdb-types.h:134
void(* parse)(struct ovsdb_idl_row *, const struct ovsdb_datum *)
Definition: ovsdb-idl-provider.h:45
static void ovsrec_open_vswitch_unparse_system_type(struct ovsdb_idl_row *row OVS_UNUSED)
Definition: vswitch-idl.c:15023
unsigned int n_max
Definition: ovsdb-types.h:137
static void ovsrec_open_vswitch_unparse_db_version(struct ovsdb_idl_row *row OVS_UNUSED)
Definition: vswitch-idl.c:14954
#define ovsrec_open_vswitch_col_ovs_version
Definition: vswitch-idl.h:1361
static void ovsrec_open_vswitch_parse_ovs_version(struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
Definition: vswitch-idl.c:14863
Definition: ovsdb-types.h:33
static void ovsrec_open_vswitch_unparse_iface_types(struct ovsdb_idl_row *row_)
Definition: vswitch-idl.c:14969
struct ovsdb_base_type value
Definition: ovsdb-types.h:135
char * name
Definition: ovsdb-idl-provider.h:42
Definition: ovsdb-types.h:34
Definition: ovsdb-types.h:30
#define ovsrec_open_vswitch_col_ssl
Definition: vswitch-idl.h:1363
struct ovsdb_type type
Definition: ovsdb-idl-provider.h:43
struct ovsdb_base_type::@145::ovsdb_uuid_constraints uuid
static void ovsrec_open_vswitch_parse_system_version(struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
Definition: vswitch-idl.c:14917
static void ovsrec_open_vswitch_unparse_manager_options(struct ovsdb_idl_row *row_)
Definition: vswitch-idl.c:14978
bool mutable
Definition: ovsdb-idl-provider.h:44
#define ovsrec_open_vswitch_col_datapath_types
Definition: vswitch-idl.h:1358
static void ovsrec_open_vswitch_parse_datapath_types(struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
Definition: vswitch-idl.c:14750
Definition: ovsdb-types.h:29
static void ovsrec_open_vswitch_unparse_statistics(struct ovsdb_idl_row *row_)
Definition: vswitch-idl.c:15014
static void ovsrec_open_vswitch_unparse_cur_cfg(struct ovsdb_idl_row *row OVS_UNUSED)
Definition: vswitch-idl.c:14939
static void ovsrec_open_vswitch_parse_next_cfg(struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
Definition: vswitch-idl.c:14835
static void ovsrec_open_vswitch_unparse_ssl(struct ovsdb_idl_row *row OVS_UNUSED)
Definition: vswitch-idl.c:15008
#define ovsrec_open_vswitch_col_cur_cfg
Definition: vswitch-idl.h:1368
#define ovsrec_open_vswitch_col_statistics
Definition: vswitch-idl.h:1357
static void ovsrec_open_vswitch_parse_manager_options(struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
Definition: vswitch-idl.c:14814
static void ovsrec_open_vswitch_parse_db_version(struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
Definition: vswitch-idl.c:14768
#define ovsrec_open_vswitch_col_iface_types
Definition: vswitch-idl.h:1359
#define ovsrec_open_vswitch_col_other_config
Definition: vswitch-idl.h:1362
#define ovsrec_open_vswitch_col_next_cfg
Definition: vswitch-idl.h:1360
#define ovsrec_open_vswitch_col_manager_options
Definition: vswitch-idl.h:1369
static void ovsrec_open_vswitch_parse_bridges(struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
Definition: vswitch-idl.c:14716
static void ovsrec_open_vswitch_unparse_system_version(struct ovsdb_idl_row *row OVS_UNUSED)
Definition: vswitch-idl.c:15029
static void ovsrec_open_vswitch_unparse_other_config(struct ovsdb_idl_row *row_)
Definition: vswitch-idl.c:14993
static void ovsrec_open_vswitch_parse_other_config(struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
Definition: vswitch-idl.c:14848
Definition: ovsdb-types.h:48
static void ovsrec_open_vswitch_parse_iface_types(struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
Definition: vswitch-idl.c:14796
static void ovsrec_open_vswitch_unparse_ovs_version(struct ovsdb_idl_row *row OVS_UNUSED)
Definition: vswitch-idl.c:15002
static void ovsrec_open_vswitch_parse_system_type(struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
Definition: vswitch-idl.c:14904
static void ovsrec_open_vswitch_parse_cur_cfg(struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
Definition: vswitch-idl.c:14737
static void ovsrec_open_vswitch_unparse_bridges(struct ovsdb_idl_row *row_)
Definition: vswitch-idl.c:14930
void ovsrec_open_vswitch_delete ( const struct ovsrec_open_vswitch row)
15084 {
15086 }
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:1289
void ovsdb_idl_txn_delete(const struct ovsdb_idl_row *row_)
Definition: ovsdb-idl.c:2208
const struct ovsrec_open_vswitch* ovsrec_open_vswitch_first ( const struct ovsdb_idl idl)
15066 {
15068 }
struct ovsdb_idl_table_class ovsrec_table_classes[OVSREC_N_TABLES]
Definition: vswitch-idl.c:21482
Definition: vswitch-idl.h:1924
static struct ovsrec_open_vswitch * ovsrec_open_vswitch_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:82
const struct ovsdb_idl_row * ovsdb_idl_first_row(const struct ovsdb_idl *idl, const struct ovsdb_idl_table_class *table_class)
Definition: ovsdb-idl.c:1290
const struct ovsdb_datum* ovsrec_open_vswitch_get_bridges ( const struct ovsrec_open_vswitch row,
enum ovsdb_atomic_type key_type  OVS_UNUSED 
)
15571 {
15572  ovs_assert(key_type == OVSDB_TYPE_UUID);
15574 }
#define ovsrec_open_vswitch_col_bridges
Definition: vswitch-idl.h:1364
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: ovsdb-types.h:34
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:1289
const struct ovsdb_datum * ovsdb_idl_read(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column)
Definition: ovsdb-idl.c:1320
const struct ovsdb_datum* ovsrec_open_vswitch_get_cur_cfg ( const struct ovsrec_open_vswitch row,
enum ovsdb_atomic_type key_type  OVS_UNUSED 
)
15598 {
15599  ovs_assert(key_type == OVSDB_TYPE_INTEGER);
15601 }
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: ovsdb-types.h:30
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:1289
const struct ovsdb_datum * ovsdb_idl_read(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column)
Definition: ovsdb-idl.c:1320
#define ovsrec_open_vswitch_col_cur_cfg
Definition: vswitch-idl.h:1368
const struct ovsdb_datum* ovsrec_open_vswitch_get_datapath_types ( const struct ovsrec_open_vswitch row,
enum ovsdb_atomic_type key_type  OVS_UNUSED 
)
15625 {
15626  ovs_assert(key_type == OVSDB_TYPE_STRING);
15628 }
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: ovsdb-types.h:33
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:1289
#define ovsrec_open_vswitch_col_datapath_types
Definition: vswitch-idl.h:1358
const struct ovsdb_datum * ovsdb_idl_read(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column)
Definition: ovsdb-idl.c:1320
const struct ovsdb_datum* ovsrec_open_vswitch_get_db_version ( const struct ovsrec_open_vswitch row,
enum ovsdb_atomic_type key_type  OVS_UNUSED 
)
15652 {
15653  ovs_assert(key_type == OVSDB_TYPE_STRING);
15655 }
#define ovsrec_open_vswitch_col_db_version
Definition: vswitch-idl.h:1356
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: ovsdb-types.h:33
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:1289
const struct ovsdb_datum * ovsdb_idl_read(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column)
Definition: ovsdb-idl.c:1320
const struct ovsdb_datum* ovsrec_open_vswitch_get_external_ids ( const struct ovsrec_open_vswitch row,
enum ovsdb_atomic_type key_type  OVS_UNUSED,
enum ovsdb_atomic_type value_type  OVS_UNUSED 
)
15681 {
15682  ovs_assert(key_type == OVSDB_TYPE_STRING);
15683  ovs_assert(value_type == OVSDB_TYPE_STRING);
15685 }
#define ovsrec_open_vswitch_col_external_ids
Definition: vswitch-idl.h:1365
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: ovsdb-types.h:33
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:1289
const struct ovsdb_datum * ovsdb_idl_read(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column)
Definition: ovsdb-idl.c:1320
const struct ovsrec_open_vswitch* ovsrec_open_vswitch_get_for_uuid ( const struct ovsdb_idl idl,
const struct uuid uuid 
)
15054 {
15056 }
const struct ovsdb_idl_row * ovsdb_idl_get_row_for_uuid(const struct ovsdb_idl *idl, const struct ovsdb_idl_table_class *tc, const struct uuid *uuid)
Definition: ovsdb-idl.c:1262
struct ovsdb_idl_table_class ovsrec_table_classes[OVSREC_N_TABLES]
Definition: vswitch-idl.c:21482
Definition: vswitch-idl.h:1924
static struct ovsrec_open_vswitch * ovsrec_open_vswitch_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:82
const struct ovsdb_datum* ovsrec_open_vswitch_get_iface_types ( const struct ovsrec_open_vswitch row,
enum ovsdb_atomic_type key_type  OVS_UNUSED 
)
15709 {
15710  ovs_assert(key_type == OVSDB_TYPE_STRING);
15712 }
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: ovsdb-types.h:33
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:1289
const struct ovsdb_datum * ovsdb_idl_read(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column)
Definition: ovsdb-idl.c:1320
#define ovsrec_open_vswitch_col_iface_types
Definition: vswitch-idl.h:1359
const struct ovsdb_datum* ovsrec_open_vswitch_get_manager_options ( const struct ovsrec_open_vswitch row,
enum ovsdb_atomic_type key_type  OVS_UNUSED 
)
15736 {
15737  ovs_assert(key_type == OVSDB_TYPE_UUID);
15739 }
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: ovsdb-types.h:34
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:1289
const struct ovsdb_datum * ovsdb_idl_read(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column)
Definition: ovsdb-idl.c:1320
#define ovsrec_open_vswitch_col_manager_options
Definition: vswitch-idl.h:1369
const struct ovsdb_datum* ovsrec_open_vswitch_get_next_cfg ( const struct ovsrec_open_vswitch row,
enum ovsdb_atomic_type key_type  OVS_UNUSED 
)
15763 {
15764  ovs_assert(key_type == OVSDB_TYPE_INTEGER);
15766 }
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: ovsdb-types.h:30
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:1289
const struct ovsdb_datum * ovsdb_idl_read(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column)
Definition: ovsdb-idl.c:1320
#define ovsrec_open_vswitch_col_next_cfg
Definition: vswitch-idl.h:1360
const struct ovsdb_datum* ovsrec_open_vswitch_get_other_config ( const struct ovsrec_open_vswitch row,
enum ovsdb_atomic_type key_type  OVS_UNUSED,
enum ovsdb_atomic_type value_type  OVS_UNUSED 
)
15792 {
15793  ovs_assert(key_type == OVSDB_TYPE_STRING);
15794  ovs_assert(value_type == OVSDB_TYPE_STRING);
15796 }
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: ovsdb-types.h:33
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:1289
const struct ovsdb_datum * ovsdb_idl_read(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column)
Definition: ovsdb-idl.c:1320
#define ovsrec_open_vswitch_col_other_config
Definition: vswitch-idl.h:1362
const struct ovsdb_datum* ovsrec_open_vswitch_get_ovs_version ( const struct ovsrec_open_vswitch row,
enum ovsdb_atomic_type key_type  OVS_UNUSED 
)
15820 {
15821  ovs_assert(key_type == OVSDB_TYPE_STRING);
15823 }
#define ovs_assert(CONDITION)
Definition: util.h:73
#define ovsrec_open_vswitch_col_ovs_version
Definition: vswitch-idl.h:1361
Definition: ovsdb-types.h:33
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:1289
const struct ovsdb_datum * ovsdb_idl_read(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column)
Definition: ovsdb-idl.c:1320
const struct ovsdb_datum* ovsrec_open_vswitch_get_ssl ( const struct ovsrec_open_vswitch row,
enum ovsdb_atomic_type key_type  OVS_UNUSED 
)
15847 {
15848  ovs_assert(key_type == OVSDB_TYPE_UUID);
15850 }
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: ovsdb-types.h:34
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:1289
#define ovsrec_open_vswitch_col_ssl
Definition: vswitch-idl.h:1363
const struct ovsdb_datum * ovsdb_idl_read(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column)
Definition: ovsdb-idl.c:1320
const struct ovsdb_datum* ovsrec_open_vswitch_get_statistics ( const struct ovsrec_open_vswitch row,
enum ovsdb_atomic_type key_type  OVS_UNUSED,
enum ovsdb_atomic_type value_type  OVS_UNUSED 
)
15876 {
15877  ovs_assert(key_type == OVSDB_TYPE_STRING);
15878  ovs_assert(value_type == OVSDB_TYPE_STRING);
15880 }
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: ovsdb-types.h:33
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:1289
const struct ovsdb_datum * ovsdb_idl_read(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column)
Definition: ovsdb-idl.c:1320
#define ovsrec_open_vswitch_col_statistics
Definition: vswitch-idl.h:1357
const struct ovsdb_datum* ovsrec_open_vswitch_get_system_type ( const struct ovsrec_open_vswitch row,
enum ovsdb_atomic_type key_type  OVS_UNUSED 
)
15904 {
15905  ovs_assert(key_type == OVSDB_TYPE_STRING);
15907 }
#define ovs_assert(CONDITION)
Definition: util.h:73
#define ovsrec_open_vswitch_col_system_type
Definition: vswitch-idl.h:1366
Definition: ovsdb-types.h:33
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:1289
const struct ovsdb_datum * ovsdb_idl_read(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column)
Definition: ovsdb-idl.c:1320
const struct ovsdb_datum* ovsrec_open_vswitch_get_system_version ( const struct ovsrec_open_vswitch row,
enum ovsdb_atomic_type key_type  OVS_UNUSED 
)
15931 {
15932  ovs_assert(key_type == OVSDB_TYPE_STRING);
15934 }
#define ovs_assert(CONDITION)
Definition: util.h:73
#define ovsrec_open_vswitch_col_system_version
Definition: vswitch-idl.h:1367
Definition: ovsdb-types.h:33
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:1289
const struct ovsdb_datum * ovsdb_idl_read(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column)
Definition: ovsdb-idl.c:1320
void ovsrec_open_vswitch_init ( struct ovsrec_open_vswitch row)
15043 {
15044  memset(row, 0, sizeof *row);
15045  smap_init(&row->external_ids);
15046  smap_init(&row->other_config);
15047  smap_init(&row->statistics);
15048 }
void smap_init(struct smap *smap)
Definition: smap.c:33
struct smap other_config
Definition: vswitch-idl.h:1320
struct smap external_ids
Definition: vswitch-idl.h:1306
struct smap statistics
Definition: vswitch-idl.h:1329
static void ovsrec_open_vswitch_init__ ( struct ovsdb_idl_row row)
static
15036 {
15038 }
void ovsrec_open_vswitch_init(struct ovsrec_open_vswitch *row)
Definition: vswitch-idl.c:15042
static struct ovsrec_open_vswitch * ovsrec_open_vswitch_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:82
struct ovsrec_open_vswitch* ovsrec_open_vswitch_insert ( struct ovsdb_idl_txn txn)
15097 {
15099 }
struct ovsdb_idl_table_class ovsrec_table_classes[OVSREC_N_TABLES]
Definition: vswitch-idl.c:21482
const struct ovsdb_idl_row * ovsdb_idl_txn_insert(struct ovsdb_idl_txn *txn, const struct ovsdb_idl_table_class *class, const struct uuid *uuid)
Definition: ovsdb-idl.c:2247
Definition: vswitch-idl.h:1924
static struct ovsrec_open_vswitch * ovsrec_open_vswitch_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:82
const struct ovsrec_open_vswitch* ovsrec_open_vswitch_next ( const struct ovsrec_open_vswitch row)
15074 {
15076 }
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:1289
const struct ovsdb_idl_row * ovsdb_idl_next_row(const struct ovsdb_idl_row *row)
Definition: ovsdb-idl.c:1301
static struct ovsrec_open_vswitch * ovsrec_open_vswitch_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:82
static void ovsrec_open_vswitch_parse_bridges ( struct ovsdb_idl_row row_,
const struct ovsdb_datum datum 
)
static
14717 {
14718  struct ovsrec_open_vswitch *row = ovsrec_open_vswitch_cast(row_);
14719  size_t i;
14720 
14721  ovs_assert(inited);
14722  row->bridges = NULL;
14723  row->n_bridges = 0;
14724  for (i = 0; i < datum->n; i++) {
14726  if (keyRow) {
14727  if (!row->n_bridges) {
14728  row->bridges = xmalloc(datum->n * sizeof *row->bridges);
14729  }
14730  row->bridges[row->n_bridges] = keyRow;
14731  row->n_bridges++;
14732  }
14733  }
14734 }
Definition: vswitch-idl.h:73
struct ovsdb_idl_table_class ovsrec_table_classes[OVSREC_N_TABLES]
Definition: vswitch-idl.c:21482
#define ovs_assert(CONDITION)
Definition: util.h:73
struct ovsdb_idl_row * ovsdb_idl_get_row_arc(struct ovsdb_idl_row *src, struct ovsdb_idl_table_class *dst_table, const struct uuid *dst_uuid)
Definition: ovsdb-idl.c:1216
union ovsdb_atom * keys
Definition: ovsdb-data.h:127
size_t n_bridges
Definition: vswitch-idl.h:1293
void * xmalloc(size_t size)
Definition: util.c:110
static bool inited
Definition: vswitch-idl.c:18
unsigned int n
Definition: ovsdb-data.h:126
struct ovsrec_bridge ** bridges
Definition: vswitch-idl.h:1292
struct uuid uuid
Definition: ovsdb-data.h:34
Definition: vswitch-idl.h:1915
static struct ovsrec_open_vswitch * ovsrec_open_vswitch_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:82
Definition: vswitch-idl.h:1288
static struct ovsrec_bridge * ovsrec_bridge_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:28
static void ovsrec_open_vswitch_parse_cur_cfg ( struct ovsdb_idl_row row_,
const struct ovsdb_datum datum 
)
static
14738 {
14739  struct ovsrec_open_vswitch *row = ovsrec_open_vswitch_cast(row_);
14740 
14741  ovs_assert(inited);
14742  if (datum->n >= 1) {
14743  row->cur_cfg = datum->keys[0].integer;
14744  } else {
14745  row->cur_cfg = 0;
14746  }
14747 }
int64_t integer
Definition: ovsdb-data.h:30
#define ovs_assert(CONDITION)
Definition: util.h:73
union ovsdb_atom * keys
Definition: ovsdb-data.h:127
int64_t cur_cfg
Definition: vswitch-idl.h:1296
static bool inited
Definition: vswitch-idl.c:18
unsigned int n
Definition: ovsdb-data.h:126
static struct ovsrec_open_vswitch * ovsrec_open_vswitch_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:82
Definition: vswitch-idl.h:1288
static void ovsrec_open_vswitch_parse_datapath_types ( struct ovsdb_idl_row row_,
const struct ovsdb_datum datum 
)
static
14751 {
14752  struct ovsrec_open_vswitch *row = ovsrec_open_vswitch_cast(row_);
14753  size_t i;
14754 
14755  ovs_assert(inited);
14756  row->datapath_types = NULL;
14757  row->n_datapath_types = 0;
14758  for (i = 0; i < datum->n; i++) {
14759  if (!row->n_datapath_types) {
14760  row->datapath_types = xmalloc(datum->n * sizeof *row->datapath_types);
14761  }
14762  row->datapath_types[row->n_datapath_types] = datum->keys[i].string;
14763  row->n_datapath_types++;
14764  }
14765 }
#define ovs_assert(CONDITION)
Definition: util.h:73
char * string
Definition: ovsdb-data.h:33
union ovsdb_atom * keys
Definition: ovsdb-data.h:127
void * xmalloc(size_t size)
Definition: util.c:110
static bool inited
Definition: vswitch-idl.c:18
unsigned int n
Definition: ovsdb-data.h:126
char ** datapath_types
Definition: vswitch-idl.h:1299
size_t n_datapath_types
Definition: vswitch-idl.h:1300
static struct ovsrec_open_vswitch * ovsrec_open_vswitch_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:82
Definition: vswitch-idl.h:1288
static void ovsrec_open_vswitch_parse_db_version ( struct ovsdb_idl_row row_,
const struct ovsdb_datum datum 
)
static
14769 {
14770  struct ovsrec_open_vswitch *row = ovsrec_open_vswitch_cast(row_);
14771 
14772  ovs_assert(inited);
14773  if (datum->n >= 1) {
14774  row->db_version = datum->keys[0].string;
14775  } else {
14776  row->db_version = NULL;
14777  }
14778 }
#define ovs_assert(CONDITION)
Definition: util.h:73
char * db_version
Definition: vswitch-idl.h:1303
char * string
Definition: ovsdb-data.h:33
union ovsdb_atom * keys
Definition: ovsdb-data.h:127
static bool inited
Definition: vswitch-idl.c:18
unsigned int n
Definition: ovsdb-data.h:126
static struct ovsrec_open_vswitch * ovsrec_open_vswitch_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:82
Definition: vswitch-idl.h:1288
static void ovsrec_open_vswitch_parse_external_ids ( struct ovsdb_idl_row row_,
const struct ovsdb_datum datum 
)
static
14782 {
14783  struct ovsrec_open_vswitch *row = ovsrec_open_vswitch_cast(row_);
14784  size_t i;
14785 
14786  ovs_assert(inited);
14787  smap_init(&row->external_ids);
14788  for (i = 0; i < datum->n; i++) {
14789  smap_add(&row->external_ids,
14790  datum->keys[i].string,
14791  datum->values[i].string);
14792  }
14793 }
#define ovs_assert(CONDITION)
Definition: util.h:73
void smap_init(struct smap *smap)
Definition: smap.c:33
char * string
Definition: ovsdb-data.h:33
struct smap_node * smap_add(struct smap *smap, const char *key, const char *value)
Definition: smap.c:50
union ovsdb_atom * keys
Definition: ovsdb-data.h:127
union ovsdb_atom * values
Definition: ovsdb-data.h:128
static bool inited
Definition: vswitch-idl.c:18
unsigned int n
Definition: ovsdb-data.h:126
struct smap external_ids
Definition: vswitch-idl.h:1306
static struct ovsrec_open_vswitch * ovsrec_open_vswitch_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:82
Definition: vswitch-idl.h:1288
static void ovsrec_open_vswitch_parse_iface_types ( struct ovsdb_idl_row row_,
const struct ovsdb_datum datum 
)
static
14797 {
14798  struct ovsrec_open_vswitch *row = ovsrec_open_vswitch_cast(row_);
14799  size_t i;
14800 
14801  ovs_assert(inited);
14802  row->iface_types = NULL;
14803  row->n_iface_types = 0;
14804  for (i = 0; i < datum->n; i++) {
14805  if (!row->n_iface_types) {
14806  row->iface_types = xmalloc(datum->n * sizeof *row->iface_types);
14807  }
14808  row->iface_types[row->n_iface_types] = datum->keys[i].string;
14809  row->n_iface_types++;
14810  }
14811 }
#define ovs_assert(CONDITION)
Definition: util.h:73
char * string
Definition: ovsdb-data.h:33
char ** iface_types
Definition: vswitch-idl.h:1309
union ovsdb_atom * keys
Definition: ovsdb-data.h:127
void * xmalloc(size_t size)
Definition: util.c:110
size_t n_iface_types
Definition: vswitch-idl.h:1310
static bool inited
Definition: vswitch-idl.c:18
unsigned int n
Definition: ovsdb-data.h:126
static struct ovsrec_open_vswitch * ovsrec_open_vswitch_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:82
Definition: vswitch-idl.h:1288
static void ovsrec_open_vswitch_parse_manager_options ( struct ovsdb_idl_row row_,
const struct ovsdb_datum datum 
)
static
14815 {
14816  struct ovsrec_open_vswitch *row = ovsrec_open_vswitch_cast(row_);
14817  size_t i;
14818 
14819  ovs_assert(inited);
14820  row->manager_options = NULL;
14821  row->n_manager_options = 0;
14822  for (i = 0; i < datum->n; i++) {
14824  if (keyRow) {
14825  if (!row->n_manager_options) {
14826  row->manager_options = xmalloc(datum->n * sizeof *row->manager_options);
14827  }
14828  row->manager_options[row->n_manager_options] = keyRow;
14829  row->n_manager_options++;
14830  }
14831  }
14832 }
Definition: vswitch-idl.h:997
struct ovsdb_idl_table_class ovsrec_table_classes[OVSREC_N_TABLES]
Definition: vswitch-idl.c:21482
#define ovs_assert(CONDITION)
Definition: util.h:73
size_t n_manager_options
Definition: vswitch-idl.h:1314
struct ovsdb_idl_row * ovsdb_idl_get_row_arc(struct ovsdb_idl_row *src, struct ovsdb_idl_table_class *dst_table, const struct uuid *dst_uuid)
Definition: ovsdb-idl.c:1216
union ovsdb_atom * keys
Definition: ovsdb-data.h:127
Definition: vswitch-idl.h:1921
void * xmalloc(size_t size)
Definition: util.c:110
static bool inited
Definition: vswitch-idl.c:18
unsigned int n
Definition: ovsdb-data.h:126
struct uuid uuid
Definition: ovsdb-data.h:34
static struct ovsrec_open_vswitch * ovsrec_open_vswitch_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:82
struct ovsrec_manager ** manager_options
Definition: vswitch-idl.h:1313
Definition: vswitch-idl.h:1288
static struct ovsrec_manager * ovsrec_manager_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:64
static void ovsrec_open_vswitch_parse_next_cfg ( struct ovsdb_idl_row row_,
const struct ovsdb_datum datum 
)
static
14836 {
14837  struct ovsrec_open_vswitch *row = ovsrec_open_vswitch_cast(row_);
14838 
14839  ovs_assert(inited);
14840  if (datum->n >= 1) {
14841  row->next_cfg = datum->keys[0].integer;
14842  } else {
14843  row->next_cfg = 0;
14844  }
14845 }
int64_t integer
Definition: ovsdb-data.h:30
#define ovs_assert(CONDITION)
Definition: util.h:73
int64_t next_cfg
Definition: vswitch-idl.h:1317
union ovsdb_atom * keys
Definition: ovsdb-data.h:127
static bool inited
Definition: vswitch-idl.c:18
unsigned int n
Definition: ovsdb-data.h:126
static struct ovsrec_open_vswitch * ovsrec_open_vswitch_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:82
Definition: vswitch-idl.h:1288
static void ovsrec_open_vswitch_parse_other_config ( struct ovsdb_idl_row row_,
const struct ovsdb_datum datum 
)
static
14849 {
14850  struct ovsrec_open_vswitch *row = ovsrec_open_vswitch_cast(row_);
14851  size_t i;
14852 
14853  ovs_assert(inited);
14854  smap_init(&row->other_config);
14855  for (i = 0; i < datum->n; i++) {
14856  smap_add(&row->other_config,
14857  datum->keys[i].string,
14858  datum->values[i].string);
14859  }
14860 }
#define ovs_assert(CONDITION)
Definition: util.h:73
void smap_init(struct smap *smap)
Definition: smap.c:33
char * string
Definition: ovsdb-data.h:33
struct smap_node * smap_add(struct smap *smap, const char *key, const char *value)
Definition: smap.c:50
union ovsdb_atom * keys
Definition: ovsdb-data.h:127
union ovsdb_atom * values
Definition: ovsdb-data.h:128
static bool inited
Definition: vswitch-idl.c:18
unsigned int n
Definition: ovsdb-data.h:126
struct smap other_config
Definition: vswitch-idl.h:1320
static struct ovsrec_open_vswitch * ovsrec_open_vswitch_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:82
Definition: vswitch-idl.h:1288
static void ovsrec_open_vswitch_parse_ovs_version ( struct ovsdb_idl_row row_,
const struct ovsdb_datum datum 
)
static
14864 {
14865  struct ovsrec_open_vswitch *row = ovsrec_open_vswitch_cast(row_);
14866 
14867  ovs_assert(inited);
14868  if (datum->n >= 1) {
14869  row->ovs_version = datum->keys[0].string;
14870  } else {
14871  row->ovs_version = NULL;
14872  }
14873 }
#define ovs_assert(CONDITION)
Definition: util.h:73
char * string
Definition: ovsdb-data.h:33
union ovsdb_atom * keys
Definition: ovsdb-data.h:127
static bool inited
Definition: vswitch-idl.c:18
unsigned int n
Definition: ovsdb-data.h:126
char * ovs_version
Definition: vswitch-idl.h:1323
static struct ovsrec_open_vswitch * ovsrec_open_vswitch_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:82
Definition: vswitch-idl.h:1288
static void ovsrec_open_vswitch_parse_ssl ( struct ovsdb_idl_row row_,
const struct ovsdb_datum datum 
)
static
14877 {
14878  struct ovsrec_open_vswitch *row = ovsrec_open_vswitch_cast(row_);
14879 
14880  ovs_assert(inited);
14881  if (datum->n >= 1) {
14883  } else {
14884  row->ssl = NULL;
14885  }
14886 }
struct ovsdb_idl_table_class ovsrec_table_classes[OVSREC_N_TABLES]
Definition: vswitch-idl.c:21482
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: vswitch-idl.h:1928
struct ovsdb_idl_row * ovsdb_idl_get_row_arc(struct ovsdb_idl_row *src, struct ovsdb_idl_table_class *dst_table, const struct uuid *dst_uuid)
Definition: ovsdb-idl.c:1216
static struct ovsrec_ssl * ovsrec_ssl_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:106
union ovsdb_atom * keys
Definition: ovsdb-data.h:127
static bool inited
Definition: vswitch-idl.c:18
unsigned int n
Definition: ovsdb-data.h:126
struct uuid uuid
Definition: ovsdb-data.h:34
struct ovsrec_ssl * ssl
Definition: vswitch-idl.h:1326
static struct ovsrec_open_vswitch * ovsrec_open_vswitch_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:82
Definition: vswitch-idl.h:1288
static void ovsrec_open_vswitch_parse_statistics ( struct ovsdb_idl_row row_,
const struct ovsdb_datum datum 
)
static
14890 {
14891  struct ovsrec_open_vswitch *row = ovsrec_open_vswitch_cast(row_);
14892  size_t i;
14893 
14894  ovs_assert(inited);
14895  smap_init(&row->statistics);
14896  for (i = 0; i < datum->n; i++) {
14897  smap_add(&row->statistics,
14898  datum->keys[i].string,
14899  datum->values[i].string);
14900  }
14901 }
#define ovs_assert(CONDITION)
Definition: util.h:73
void smap_init(struct smap *smap)
Definition: smap.c:33
char * string
Definition: ovsdb-data.h:33
struct smap_node * smap_add(struct smap *smap, const char *key, const char *value)
Definition: smap.c:50
union ovsdb_atom * keys
Definition: ovsdb-data.h:127
union ovsdb_atom * values
Definition: ovsdb-data.h:128
static bool inited
Definition: vswitch-idl.c:18
unsigned int n
Definition: ovsdb-data.h:126
static struct ovsrec_open_vswitch * ovsrec_open_vswitch_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:82
Definition: vswitch-idl.h:1288
struct smap statistics
Definition: vswitch-idl.h:1329
static void ovsrec_open_vswitch_parse_system_type ( struct ovsdb_idl_row row_,
const struct ovsdb_datum datum 
)
static
14905 {
14906  struct ovsrec_open_vswitch *row = ovsrec_open_vswitch_cast(row_);
14907 
14908  ovs_assert(inited);
14909  if (datum->n >= 1) {
14910  row->system_type = datum->keys[0].string;
14911  } else {
14912  row->system_type = NULL;
14913  }
14914 }
#define ovs_assert(CONDITION)
Definition: util.h:73
char * string
Definition: ovsdb-data.h:33
union ovsdb_atom * keys
Definition: ovsdb-data.h:127
static bool inited
Definition: vswitch-idl.c:18
unsigned int n
Definition: ovsdb-data.h:126
static struct ovsrec_open_vswitch * ovsrec_open_vswitch_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:82
Definition: vswitch-idl.h:1288
char * system_type
Definition: vswitch-idl.h:1332
static void ovsrec_open_vswitch_parse_system_version ( struct ovsdb_idl_row row_,
const struct ovsdb_datum datum 
)
static
14918 {
14919  struct ovsrec_open_vswitch *row = ovsrec_open_vswitch_cast(row_);
14920 
14921  ovs_assert(inited);
14922  if (datum->n >= 1) {
14923  row->system_version = datum->keys[0].string;
14924  } else {
14925  row->system_version = NULL;
14926  }
14927 }
#define ovs_assert(CONDITION)
Definition: util.h:73
char * string
Definition: ovsdb-data.h:33
union ovsdb_atom * keys
Definition: ovsdb-data.h:127
static bool inited
Definition: vswitch-idl.c:18
unsigned int n
Definition: ovsdb-data.h:126
char * system_version
Definition: vswitch-idl.h:1335
static struct ovsrec_open_vswitch * ovsrec_open_vswitch_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:82
Definition: vswitch-idl.h:1288
void ovsrec_open_vswitch_set_bridges ( const struct ovsrec_open_vswitch row,
struct ovsrec_bridge **  bridges,
size_t  n_bridges 
)
15942 {
15943  struct ovsdb_datum datum;
15944  size_t i;
15945 
15946  ovs_assert(inited);
15947  datum.n = n_bridges;
15948  datum.keys = n_bridges ? xmalloc(n_bridges * sizeof *datum.keys) : NULL;
15949  datum.values = NULL;
15950  for (i = 0; i < n_bridges; i++) {
15951  datum.keys[i].uuid = bridges[i]->header_.uuid;
15952  }
15955 }
Definition: ovsdb-data.h:125
#define ovs_assert(CONDITION)
Definition: util.h:73
size_t ovsdb_datum_sort_unique(struct ovsdb_datum *datum, enum ovsdb_atomic_type key_type, enum ovsdb_atomic_type value_type)
Definition: ovsdb-data.c:1089
Definition: ovsdb-types.h:34
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:74
struct ovsdb_idl_column ovsrec_open_vswitch_columns[OVSREC_OPEN_VSWITCH_N_COLUMNS]
Definition: vswitch-idl.c:16288
void * xmalloc(size_t size)
Definition: util.c:110
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:1289
static bool inited
Definition: vswitch-idl.c:18
Definition: ovsdb-types.h:29
Definition: vswitch-idl.h:1339
void ovsdb_idl_txn_write(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column, struct ovsdb_datum *datum)
Definition: ovsdb-idl.c:2123
struct uuid uuid
Definition: ovsdb-idl-provider.h:28
void ovsrec_open_vswitch_set_cur_cfg ( const struct ovsrec_open_vswitch row,
int64_t  cur_cfg 
)
15963 {
15964  struct ovsdb_datum datum;
15965  union ovsdb_atom key;
15966 
15967  ovs_assert(inited);
15968  datum.n = 1;
15969  datum.keys = &key;
15970  key.integer = cur_cfg;
15971  datum.values = NULL;
15973 }
Definition: ovsdb-data.h:125
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: ovsdb-data.h:29
struct ovsdb_idl_column ovsrec_open_vswitch_columns[OVSREC_OPEN_VSWITCH_N_COLUMNS]
Definition: vswitch-idl.c:16288
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:1289
static bool inited
Definition: vswitch-idl.c:18
Definition: vswitch-idl.h:1340
static struct aes128 key
Definition: uuid.c:34
void ovsdb_idl_txn_write_clone(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column, const struct ovsdb_datum *datum)
Definition: ovsdb-idl.c:2131
void ovsrec_open_vswitch_set_datapath_types ( const struct ovsrec_open_vswitch row,
const char **  datapath_types,
size_t  n_datapath_types 
)
15981 {
15982  struct ovsdb_datum datum;
15983  size_t i;
15984 
15985  ovs_assert(inited);
15986  datum.n = n_datapath_types;
15987  datum.keys = n_datapath_types ? xmalloc(n_datapath_types * sizeof *datum.keys) : NULL;
15988  datum.values = NULL;
15989  for (i = 0; i < n_datapath_types; i++) {
15990  datum.keys[i].string = xstrdup(datapath_types[i]);
15991  }
15994 }
Definition: ovsdb-data.h:125
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: ovsdb-types.h:33
size_t ovsdb_datum_sort_unique(struct ovsdb_datum *datum, enum ovsdb_atomic_type key_type, enum ovsdb_atomic_type value_type)
Definition: ovsdb-data.c:1089
Definition: vswitch-idl.h:1341
struct ovsdb_idl_column ovsrec_open_vswitch_columns[OVSREC_OPEN_VSWITCH_N_COLUMNS]
Definition: vswitch-idl.c:16288
void * xmalloc(size_t size)
Definition: util.c:110
char * xstrdup(const char *s)
Definition: util.c:149
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:1289
static bool inited
Definition: vswitch-idl.c:18
Definition: ovsdb-types.h:29
void ovsdb_idl_txn_write(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column, struct ovsdb_datum *datum)
Definition: ovsdb-idl.c:2123
void ovsrec_open_vswitch_set_db_version ( const struct ovsrec_open_vswitch row,
const char *  db_version 
)
16005 {
16006  struct ovsdb_datum datum;
16007  union ovsdb_atom key;
16008 
16009  ovs_assert(inited);
16010  if (db_version) {
16011  datum.n = 1;
16012  datum.keys = &key;
16013  key.string = CONST_CAST(char *, db_version);
16014  } else {
16015  datum.n = 0;
16016  datum.keys = NULL;
16017  }
16018  datum.values = NULL;
16020 }
Definition: ovsdb-data.h:125
Definition: vswitch-idl.h:1342
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: ovsdb-data.h:29
struct ovsdb_idl_column ovsrec_open_vswitch_columns[OVSREC_OPEN_VSWITCH_N_COLUMNS]
Definition: vswitch-idl.c:16288
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:1289
static bool inited
Definition: vswitch-idl.c:18
#define CONST_CAST(TYPE, POINTER)
Definition: util.h:88
static struct aes128 key
Definition: uuid.c:34
void ovsdb_idl_txn_write_clone(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column, const struct ovsdb_datum *datum)
Definition: ovsdb-idl.c:2131
void ovsrec_open_vswitch_set_external_ids ( const struct ovsrec_open_vswitch row,
const struct smap external_ids 
)
16028 {
16029  struct ovsdb_datum datum;
16030 
16031  ovs_assert(inited);
16032  if (external_ids) {
16033  struct smap_node *node;
16034  size_t i;
16035 
16036  datum.n = smap_count(external_ids);
16037  datum.keys = xmalloc(datum.n * sizeof *datum.keys);
16038  datum.values = xmalloc(datum.n * sizeof *datum.values);
16039 
16040  i = 0;
16041  SMAP_FOR_EACH (node, external_ids) {
16042  datum.keys[i].string = xstrdup(node->key);
16043  datum.values[i].string = xstrdup(node->value);
16044  i++;
16045  }
16047  } else {
16048  ovsdb_datum_init_empty(&datum);
16049  }
16052  &datum);
16053 }
char * value
Definition: smap.h:31
Definition: ovsdb-data.h:125
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: ovsdb-types.h:33
size_t ovsdb_datum_sort_unique(struct ovsdb_datum *datum, enum ovsdb_atomic_type key_type, enum ovsdb_atomic_type value_type)
Definition: ovsdb-data.c:1089
Definition: vswitch-idl.h:1343
#define SMAP_FOR_EACH(SMAP_NODE, SMAP)
Definition: smap.h:36
struct ovsdb_idl_column ovsrec_open_vswitch_columns[OVSREC_OPEN_VSWITCH_N_COLUMNS]
Definition: vswitch-idl.c:16288
void * xmalloc(size_t size)
Definition: util.c:110
char * xstrdup(const char *s)
Definition: util.c:149
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:1289
static bool inited
Definition: vswitch-idl.c:18
struct hmap_node node
Definition: smap.h:29
Definition: smap.h:28
size_t smap_count(const struct smap *smap)
Definition: smap.c:238
void ovsdb_datum_init_empty(struct ovsdb_datum *datum)
Definition: ovsdb-data.c:835
void ovsdb_idl_txn_write(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column, struct ovsdb_datum *datum)
Definition: ovsdb-idl.c:2123
char * key
Definition: smap.h:30
void ovsrec_open_vswitch_set_iface_types ( const struct ovsrec_open_vswitch row,
const char **  iface_types,
size_t  n_iface_types 
)
16062 {
16063  struct ovsdb_datum datum;
16064  size_t i;
16065 
16066  ovs_assert(inited);
16067  datum.n = n_iface_types;
16068  datum.keys = n_iface_types ? xmalloc(n_iface_types * sizeof *datum.keys) : NULL;
16069  datum.values = NULL;
16070  for (i = 0; i < n_iface_types; i++) {
16071  datum.keys[i].string = xstrdup(iface_types[i]);
16072  }
16075 }
Definition: ovsdb-data.h:125
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: ovsdb-types.h:33
size_t ovsdb_datum_sort_unique(struct ovsdb_datum *datum, enum ovsdb_atomic_type key_type, enum ovsdb_atomic_type value_type)
Definition: ovsdb-data.c:1089
struct ovsdb_idl_column ovsrec_open_vswitch_columns[OVSREC_OPEN_VSWITCH_N_COLUMNS]
Definition: vswitch-idl.c:16288
void * xmalloc(size_t size)
Definition: util.c:110
char * xstrdup(const char *s)
Definition: util.c:149
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:1289
static bool inited
Definition: vswitch-idl.c:18
Definition: vswitch-idl.h:1344
Definition: ovsdb-types.h:29
void ovsdb_idl_txn_write(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column, struct ovsdb_datum *datum)
Definition: ovsdb-idl.c:2123
void ovsrec_open_vswitch_set_manager_options ( const struct ovsrec_open_vswitch row,
struct ovsrec_manager **  manager_options,
size_t  n_manager_options 
)
16083 {
16084  struct ovsdb_datum datum;
16085  size_t i;
16086 
16087  ovs_assert(inited);
16088  datum.n = n_manager_options;
16089  datum.keys = n_manager_options ? xmalloc(n_manager_options * sizeof *datum.keys) : NULL;
16090  datum.values = NULL;
16091  for (i = 0; i < n_manager_options; i++) {
16092  datum.keys[i].uuid = manager_options[i]->header_.uuid;
16093  }
16096 }
Definition: ovsdb-data.h:125
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: vswitch-idl.h:1345
size_t ovsdb_datum_sort_unique(struct ovsdb_datum *datum, enum ovsdb_atomic_type key_type, enum ovsdb_atomic_type value_type)
Definition: ovsdb-data.c:1089
Definition: ovsdb-types.h:34
struct ovsdb_idl_column ovsrec_open_vswitch_columns[OVSREC_OPEN_VSWITCH_N_COLUMNS]
Definition: vswitch-idl.c:16288
void * xmalloc(size_t size)
Definition: util.c:110
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:1289
static bool inited
Definition: vswitch-idl.c:18
Definition: ovsdb-types.h:29
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:998
void ovsdb_idl_txn_write(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column, struct ovsdb_datum *datum)
Definition: ovsdb-idl.c:2123
struct uuid uuid
Definition: ovsdb-idl-provider.h:28
void ovsrec_open_vswitch_set_next_cfg ( const struct ovsrec_open_vswitch row,
int64_t  next_cfg 
)
16104 {
16105  struct ovsdb_datum datum;
16106  union ovsdb_atom key;
16107 
16108  ovs_assert(inited);
16109  datum.n = 1;
16110  datum.keys = &key;
16111  key.integer = next_cfg;
16112  datum.values = NULL;
16114 }
Definition: ovsdb-data.h:125
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: ovsdb-data.h:29
Definition: vswitch-idl.h:1346
struct ovsdb_idl_column ovsrec_open_vswitch_columns[OVSREC_OPEN_VSWITCH_N_COLUMNS]
Definition: vswitch-idl.c:16288
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:1289
static bool inited
Definition: vswitch-idl.c:18
static struct aes128 key
Definition: uuid.c:34
void ovsdb_idl_txn_write_clone(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column, const struct ovsdb_datum *datum)
Definition: ovsdb-idl.c:2131
void ovsrec_open_vswitch_set_other_config ( const struct ovsrec_open_vswitch row,
const struct smap other_config 
)
16122 {
16123  struct ovsdb_datum datum;
16124 
16125  ovs_assert(inited);
16126  if (other_config) {
16127  struct smap_node *node;
16128  size_t i;
16129 
16130  datum.n = smap_count(other_config);
16131  datum.keys = xmalloc(datum.n * sizeof *datum.keys);
16132  datum.values = xmalloc(datum.n * sizeof *datum.values);
16133 
16134  i = 0;
16135  SMAP_FOR_EACH (node, other_config) {
16136  datum.keys[i].string = xstrdup(node->key);
16137  datum.values[i].string = xstrdup(node->value);
16138  i++;
16139  }
16141  } else {
16142  ovsdb_datum_init_empty(&datum);
16143  }
16146  &datum);
16147 }
char * value
Definition: smap.h:31
Definition: ovsdb-data.h:125
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: ovsdb-types.h:33
size_t ovsdb_datum_sort_unique(struct ovsdb_datum *datum, enum ovsdb_atomic_type key_type, enum ovsdb_atomic_type value_type)
Definition: ovsdb-data.c:1089
#define SMAP_FOR_EACH(SMAP_NODE, SMAP)
Definition: smap.h:36
struct ovsdb_idl_column ovsrec_open_vswitch_columns[OVSREC_OPEN_VSWITCH_N_COLUMNS]
Definition: vswitch-idl.c:16288
void * xmalloc(size_t size)
Definition: util.c:110
char * xstrdup(const char *s)
Definition: util.c:149
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:1289
static bool inited
Definition: vswitch-idl.c:18
struct hmap_node node
Definition: smap.h:29
Definition: smap.h:28
Definition: vswitch-idl.h:1347
size_t smap_count(const struct smap *smap)
Definition: smap.c:238
void ovsdb_datum_init_empty(struct ovsdb_datum *datum)
Definition: ovsdb-data.c:835
void ovsdb_idl_txn_write(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column, struct ovsdb_datum *datum)
Definition: ovsdb-idl.c:2123
char * key
Definition: smap.h:30
void ovsrec_open_vswitch_set_ovs_version ( const struct ovsrec_open_vswitch row,
const char *  ovs_version 
)
16159 {
16160  struct ovsdb_datum datum;
16161  union ovsdb_atom key;
16162 
16163  ovs_assert(inited);
16164  if (ovs_version) {
16165  datum.n = 1;
16166  datum.keys = &key;
16167  key.string = CONST_CAST(char *, ovs_version);
16168  } else {
16169  datum.n = 0;
16170  datum.keys = NULL;
16171  }
16172  datum.values = NULL;
16174 }
Definition: ovsdb-data.h:125
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: ovsdb-data.h:29
struct ovsdb_idl_column ovsrec_open_vswitch_columns[OVSREC_OPEN_VSWITCH_N_COLUMNS]
Definition: vswitch-idl.c:16288
Definition: vswitch-idl.h:1348
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:1289
static bool inited
Definition: vswitch-idl.c:18
#define CONST_CAST(TYPE, POINTER)
Definition: util.h:88
static struct aes128 key
Definition: uuid.c:34
void ovsdb_idl_txn_write_clone(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column, const struct ovsdb_datum *datum)
Definition: ovsdb-idl.c:2131
void ovsrec_open_vswitch_set_ssl ( const struct ovsrec_open_vswitch row,
const struct ovsrec_ssl ssl 
)
16185 {
16186  struct ovsdb_datum datum;
16187  union ovsdb_atom key;
16188 
16189  ovs_assert(inited);
16190  if (ssl) {
16191  datum.n = 1;
16192  datum.keys = &key;
16193  key.uuid = ssl->header_.uuid;
16194  } else {
16195  datum.n = 0;
16196  datum.keys = NULL;
16197  }
16198  datum.values = NULL;
16200 }
Definition: ovsdb-data.h:125
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: vswitch-idl.h:1349
Definition: ovsdb-data.h:29
struct ovsdb_idl_column ovsrec_open_vswitch_columns[OVSREC_OPEN_VSWITCH_N_COLUMNS]
Definition: vswitch-idl.c:16288
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:1289
static bool inited
Definition: vswitch-idl.c:18
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:1759
static struct aes128 key
Definition: uuid.c:34
struct uuid uuid
Definition: ovsdb-idl-provider.h:28
void ovsdb_idl_txn_write_clone(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column, const struct ovsdb_datum *datum)
Definition: ovsdb-idl.c:2131
void ovsrec_open_vswitch_set_statistics ( const struct ovsrec_open_vswitch row,
const struct smap statistics 
)
16208 {
16209  struct ovsdb_datum datum;
16210 
16211  ovs_assert(inited);
16212  if (statistics) {
16213  struct smap_node *node;
16214  size_t i;
16215 
16216  datum.n = smap_count(statistics);
16217  datum.keys = xmalloc(datum.n * sizeof *datum.keys);
16218  datum.values = xmalloc(datum.n * sizeof *datum.values);
16219 
16220  i = 0;
16221  SMAP_FOR_EACH (node, statistics) {
16222  datum.keys[i].string = xstrdup(node->key);
16223  datum.values[i].string = xstrdup(node->value);
16224  i++;
16225  }
16227  } else {
16228  ovsdb_datum_init_empty(&datum);
16229  }
16232  &datum);
16233 }
char * value
Definition: smap.h:31
Definition: ovsdb-data.h:125
Definition: vswitch-idl.h:1350
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: ovsdb-types.h:33
size_t ovsdb_datum_sort_unique(struct ovsdb_datum *datum, enum ovsdb_atomic_type key_type, enum ovsdb_atomic_type value_type)
Definition: ovsdb-data.c:1089
#define SMAP_FOR_EACH(SMAP_NODE, SMAP)
Definition: smap.h:36
struct ovsdb_idl_column ovsrec_open_vswitch_columns[OVSREC_OPEN_VSWITCH_N_COLUMNS]
Definition: vswitch-idl.c:16288
void * xmalloc(size_t size)
Definition: util.c:110
char * xstrdup(const char *s)
Definition: util.c:149
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:1289
static bool inited
Definition: vswitch-idl.c:18
struct hmap_node node
Definition: smap.h:29
Definition: smap.h:28
size_t smap_count(const struct smap *smap)
Definition: smap.c:238
void ovsdb_datum_init_empty(struct ovsdb_datum *datum)
Definition: ovsdb-data.c:835
void ovsdb_idl_txn_write(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column, struct ovsdb_datum *datum)
Definition: ovsdb-idl.c:2123
char * key
Definition: smap.h:30
void ovsrec_open_vswitch_set_system_type ( const struct ovsrec_open_vswitch row,
const char *  system_type 
)
16245 {
16246  struct ovsdb_datum datum;
16247  union ovsdb_atom key;
16248 
16249  ovs_assert(inited);
16250  if (system_type) {
16251  datum.n = 1;
16252  datum.keys = &key;
16253  key.string = CONST_CAST(char *, system_type);
16254  } else {
16255  datum.n = 0;
16256  datum.keys = NULL;
16257  }
16258  datum.values = NULL;
16260 }
Definition: ovsdb-data.h:125
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: ovsdb-data.h:29
struct ovsdb_idl_column ovsrec_open_vswitch_columns[OVSREC_OPEN_VSWITCH_N_COLUMNS]
Definition: vswitch-idl.c:16288
Definition: vswitch-idl.h:1351
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:1289
static bool inited
Definition: vswitch-idl.c:18
#define CONST_CAST(TYPE, POINTER)
Definition: util.h:88
static struct aes128 key
Definition: uuid.c:34
void ovsdb_idl_txn_write_clone(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column, const struct ovsdb_datum *datum)
Definition: ovsdb-idl.c:2131
void ovsrec_open_vswitch_set_system_version ( const struct ovsrec_open_vswitch row,
const char *  system_version 
)
16271 {
16272  struct ovsdb_datum datum;
16273  union ovsdb_atom key;
16274 
16275  ovs_assert(inited);
16276  if (system_version) {
16277  datum.n = 1;
16278  datum.keys = &key;
16279  key.string = CONST_CAST(char *, system_version);
16280  } else {
16281  datum.n = 0;
16282  datum.keys = NULL;
16283  }
16284  datum.values = NULL;
16286 }
Definition: ovsdb-data.h:125
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: vswitch-idl.h:1352
Definition: ovsdb-data.h:29
struct ovsdb_idl_column ovsrec_open_vswitch_columns[OVSREC_OPEN_VSWITCH_N_COLUMNS]
Definition: vswitch-idl.c:16288
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:1289
static bool inited
Definition: vswitch-idl.c:18
#define CONST_CAST(TYPE, POINTER)
Definition: util.h:88
static struct aes128 key
Definition: uuid.c:34
void ovsdb_idl_txn_write_clone(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column, const struct ovsdb_datum *datum)
Definition: ovsdb-idl.c:2131
static void ovsrec_open_vswitch_unparse_bridges ( struct ovsdb_idl_row row_)
static
14931 {
14932  struct ovsrec_open_vswitch *row = ovsrec_open_vswitch_cast(row_);
14933 
14934  ovs_assert(inited);
14935  free(row->bridges);
14936 }
#define ovs_assert(CONDITION)
Definition: util.h:73
static bool inited
Definition: vswitch-idl.c:18
struct ovsrec_bridge ** bridges
Definition: vswitch-idl.h:1292
static struct ovsrec_open_vswitch * ovsrec_open_vswitch_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:82
Definition: vswitch-idl.h:1288
static void ovsrec_open_vswitch_unparse_cur_cfg ( struct ovsdb_idl_row *row  OVS_UNUSED)
static
14940 {
14941  /* Nothing to do. */
14942 }
static void ovsrec_open_vswitch_unparse_datapath_types ( struct ovsdb_idl_row row_)
static
14946 {
14947  struct ovsrec_open_vswitch *row = ovsrec_open_vswitch_cast(row_);
14948 
14949  ovs_assert(inited);
14950  free(row->datapath_types);
14951 }
#define ovs_assert(CONDITION)
Definition: util.h:73
static bool inited
Definition: vswitch-idl.c:18
char ** datapath_types
Definition: vswitch-idl.h:1299
static struct ovsrec_open_vswitch * ovsrec_open_vswitch_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:82
Definition: vswitch-idl.h:1288
static void ovsrec_open_vswitch_unparse_db_version ( struct ovsdb_idl_row *row  OVS_UNUSED)
static
14955 {
14956  /* Nothing to do. */
14957 }
static void ovsrec_open_vswitch_unparse_external_ids ( struct ovsdb_idl_row row_)
static
14961 {
14962  struct ovsrec_open_vswitch *row = ovsrec_open_vswitch_cast(row_);
14963 
14964  ovs_assert(inited);
14965  smap_destroy(&row->external_ids);
14966 }
#define ovs_assert(CONDITION)
Definition: util.h:73
static bool inited
Definition: vswitch-idl.c:18
void smap_destroy(struct smap *smap)
Definition: smap.c:39
struct smap external_ids
Definition: vswitch-idl.h:1306
static struct ovsrec_open_vswitch * ovsrec_open_vswitch_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:82
Definition: vswitch-idl.h:1288
static void ovsrec_open_vswitch_unparse_iface_types ( struct ovsdb_idl_row row_)
static
14970 {
14971  struct ovsrec_open_vswitch *row = ovsrec_open_vswitch_cast(row_);
14972 
14973  ovs_assert(inited);
14974  free(row->iface_types);
14975 }
#define ovs_assert(CONDITION)
Definition: util.h:73
char ** iface_types
Definition: vswitch-idl.h:1309
static bool inited
Definition: vswitch-idl.c:18
static struct ovsrec_open_vswitch * ovsrec_open_vswitch_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:82
Definition: vswitch-idl.h:1288
static void ovsrec_open_vswitch_unparse_manager_options ( struct ovsdb_idl_row row_)
static
14979 {
14980  struct ovsrec_open_vswitch *row = ovsrec_open_vswitch_cast(row_);
14981 
14982  ovs_assert(inited);
14983  free(row->manager_options);
14984 }
#define ovs_assert(CONDITION)
Definition: util.h:73
static bool inited
Definition: vswitch-idl.c:18
static struct ovsrec_open_vswitch * ovsrec_open_vswitch_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:82
struct ovsrec_manager ** manager_options
Definition: vswitch-idl.h:1313
Definition: vswitch-idl.h:1288
static void ovsrec_open_vswitch_unparse_next_cfg ( struct ovsdb_idl_row *row  OVS_UNUSED)
static
14988 {
14989  /* Nothing to do. */
14990 }
static void ovsrec_open_vswitch_unparse_other_config ( struct ovsdb_idl_row row_)
static
14994 {
14995  struct ovsrec_open_vswitch *row = ovsrec_open_vswitch_cast(row_);
14996 
14997  ovs_assert(inited);
14998  smap_destroy(&row->other_config);
14999 }
#define ovs_assert(CONDITION)
Definition: util.h:73
static bool inited
Definition: vswitch-idl.c:18
void smap_destroy(struct smap *smap)
Definition: smap.c:39
struct smap other_config
Definition: vswitch-idl.h:1320
static struct ovsrec_open_vswitch * ovsrec_open_vswitch_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:82
Definition: vswitch-idl.h:1288
static void ovsrec_open_vswitch_unparse_ovs_version ( struct ovsdb_idl_row *row  OVS_UNUSED)
static
15003 {
15004  /* Nothing to do. */
15005 }
static void ovsrec_open_vswitch_unparse_ssl ( struct ovsdb_idl_row *row  OVS_UNUSED)
static
15009 {
15010  /* Nothing to do. */
15011 }
static void ovsrec_open_vswitch_unparse_statistics ( struct ovsdb_idl_row row_)
static
15015 {
15016  struct ovsrec_open_vswitch *row = ovsrec_open_vswitch_cast(row_);
15017 
15018  ovs_assert(inited);
15019  smap_destroy(&row->statistics);
15020 }
#define ovs_assert(CONDITION)
Definition: util.h:73
static bool inited
Definition: vswitch-idl.c:18
void smap_destroy(struct smap *smap)
Definition: smap.c:39
static struct ovsrec_open_vswitch * ovsrec_open_vswitch_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:82
Definition: vswitch-idl.h:1288
struct smap statistics
Definition: vswitch-idl.h:1329
static void ovsrec_open_vswitch_unparse_system_type ( struct ovsdb_idl_row *row  OVS_UNUSED)
static
15024 {
15025  /* Nothing to do. */
15026 }
static void ovsrec_open_vswitch_unparse_system_version ( struct ovsdb_idl_row *row  OVS_UNUSED)
static
15030 {
15031  /* Nothing to do. */
15032 }
void ovsrec_open_vswitch_verify_bridges ( const struct ovsrec_open_vswitch row)
15128 {
15129  ovs_assert(inited);
15131 }
#define ovs_assert(CONDITION)
Definition: util.h:73
struct ovsdb_idl_column ovsrec_open_vswitch_columns[OVSREC_OPEN_VSWITCH_N_COLUMNS]
Definition: vswitch-idl.c:16288
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:1289
static bool inited
Definition: vswitch-idl.c:18
void ovsdb_idl_txn_verify(const struct ovsdb_idl_row *, const struct ovsdb_idl_column *)
Definition: ovsdb-idl.c:2168
Definition: vswitch-idl.h:1339
void ovsrec_open_vswitch_verify_cur_cfg ( const struct ovsrec_open_vswitch row)
15160 {
15161  ovs_assert(inited);
15163 }
#define ovs_assert(CONDITION)
Definition: util.h:73
struct ovsdb_idl_column ovsrec_open_vswitch_columns[OVSREC_OPEN_VSWITCH_N_COLUMNS]
Definition: vswitch-idl.c:16288
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:1289
static bool inited
Definition: vswitch-idl.c:18
Definition: vswitch-idl.h:1340
void ovsdb_idl_txn_verify(const struct ovsdb_idl_row *, const struct ovsdb_idl_column *)
Definition: ovsdb-idl.c:2168
void ovsrec_open_vswitch_verify_datapath_types ( const struct ovsrec_open_vswitch row)
15192 {
15193  ovs_assert(inited);
15195 }
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: vswitch-idl.h:1341
struct ovsdb_idl_column ovsrec_open_vswitch_columns[OVSREC_OPEN_VSWITCH_N_COLUMNS]
Definition: vswitch-idl.c:16288
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:1289
static bool inited
Definition: vswitch-idl.c:18
void ovsdb_idl_txn_verify(const struct ovsdb_idl_row *, const struct ovsdb_idl_column *)
Definition: ovsdb-idl.c:2168
void ovsrec_open_vswitch_verify_db_version ( const struct ovsrec_open_vswitch row)
15224 {
15225  ovs_assert(inited);
15227 }
Definition: vswitch-idl.h:1342
#define ovs_assert(CONDITION)
Definition: util.h:73
struct ovsdb_idl_column ovsrec_open_vswitch_columns[OVSREC_OPEN_VSWITCH_N_COLUMNS]
Definition: vswitch-idl.c:16288
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:1289
static bool inited
Definition: vswitch-idl.c:18
void ovsdb_idl_txn_verify(const struct ovsdb_idl_row *, const struct ovsdb_idl_column *)
Definition: ovsdb-idl.c:2168
void ovsrec_open_vswitch_verify_external_ids ( const struct ovsrec_open_vswitch row)
15256 {
15257  ovs_assert(inited);
15259 }
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: vswitch-idl.h:1343
struct ovsdb_idl_column ovsrec_open_vswitch_columns[OVSREC_OPEN_VSWITCH_N_COLUMNS]
Definition: vswitch-idl.c:16288
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:1289
static bool inited
Definition: vswitch-idl.c:18
void ovsdb_idl_txn_verify(const struct ovsdb_idl_row *, const struct ovsdb_idl_column *)
Definition: ovsdb-idl.c:2168
void ovsrec_open_vswitch_verify_iface_types ( const struct ovsrec_open_vswitch row)
15288 {
15289  ovs_assert(inited);
15291 }
#define ovs_assert(CONDITION)
Definition: util.h:73
struct ovsdb_idl_column ovsrec_open_vswitch_columns[OVSREC_OPEN_VSWITCH_N_COLUMNS]
Definition: vswitch-idl.c:16288
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:1289
static bool inited
Definition: vswitch-idl.c:18
Definition: vswitch-idl.h:1344
void ovsdb_idl_txn_verify(const struct ovsdb_idl_row *, const struct ovsdb_idl_column *)
Definition: ovsdb-idl.c:2168
void ovsrec_open_vswitch_verify_manager_options ( const struct ovsrec_open_vswitch row)
15320 {
15321  ovs_assert(inited);
15323 }
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: vswitch-idl.h:1345
struct ovsdb_idl_column ovsrec_open_vswitch_columns[OVSREC_OPEN_VSWITCH_N_COLUMNS]
Definition: vswitch-idl.c:16288
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:1289
static bool inited
Definition: vswitch-idl.c:18
void ovsdb_idl_txn_verify(const struct ovsdb_idl_row *, const struct ovsdb_idl_column *)
Definition: ovsdb-idl.c:2168
void ovsrec_open_vswitch_verify_next_cfg ( const struct ovsrec_open_vswitch row)
15352 {
15353  ovs_assert(inited);
15355 }
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: vswitch-idl.h:1346
struct ovsdb_idl_column ovsrec_open_vswitch_columns[OVSREC_OPEN_VSWITCH_N_COLUMNS]
Definition: vswitch-idl.c:16288
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:1289
static bool inited
Definition: vswitch-idl.c:18
void ovsdb_idl_txn_verify(const struct ovsdb_idl_row *, const struct ovsdb_idl_column *)
Definition: ovsdb-idl.c:2168
void ovsrec_open_vswitch_verify_other_config ( const struct ovsrec_open_vswitch row)
15384 {
15385  ovs_assert(inited);
15387 }
#define ovs_assert(CONDITION)
Definition: util.h:73
struct ovsdb_idl_column ovsrec_open_vswitch_columns[OVSREC_OPEN_VSWITCH_N_COLUMNS]
Definition: vswitch-idl.c:16288
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:1289
static bool inited
Definition: vswitch-idl.c:18
Definition: vswitch-idl.h:1347
void ovsdb_idl_txn_verify(const struct ovsdb_idl_row *, const struct ovsdb_idl_column *)
Definition: ovsdb-idl.c:2168
void ovsrec_open_vswitch_verify_ovs_version ( const struct ovsrec_open_vswitch row)
15416 {
15417  ovs_assert(inited);
15419 }
#define ovs_assert(CONDITION)
Definition: util.h:73
struct ovsdb_idl_column ovsrec_open_vswitch_columns[OVSREC_OPEN_VSWITCH_N_COLUMNS]
Definition: vswitch-idl.c:16288
Definition: vswitch-idl.h:1348
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:1289
static bool inited
Definition: vswitch-idl.c:18
void ovsdb_idl_txn_verify(const struct ovsdb_idl_row *, const struct ovsdb_idl_column *)
Definition: ovsdb-idl.c:2168
void ovsrec_open_vswitch_verify_ssl ( const struct ovsrec_open_vswitch row)
15448 {
15449  ovs_assert(inited);
15451 }
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: vswitch-idl.h:1349
struct ovsdb_idl_column ovsrec_open_vswitch_columns[OVSREC_OPEN_VSWITCH_N_COLUMNS]
Definition: vswitch-idl.c:16288
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:1289
static bool inited
Definition: vswitch-idl.c:18
void ovsdb_idl_txn_verify(const struct ovsdb_idl_row *, const struct ovsdb_idl_column *)
Definition: ovsdb-idl.c:2168
void ovsrec_open_vswitch_verify_statistics ( const struct ovsrec_open_vswitch row)
15480 {
15481  ovs_assert(inited);
15483 }
Definition: vswitch-idl.h:1350
#define ovs_assert(CONDITION)
Definition: util.h:73
struct ovsdb_idl_column ovsrec_open_vswitch_columns[OVSREC_OPEN_VSWITCH_N_COLUMNS]
Definition: vswitch-idl.c:16288
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:1289
static bool inited
Definition: vswitch-idl.c:18
void ovsdb_idl_txn_verify(const struct ovsdb_idl_row *, const struct ovsdb_idl_column *)
Definition: ovsdb-idl.c:2168
void ovsrec_open_vswitch_verify_system_type ( const struct ovsrec_open_vswitch row)
15512 {
15513  ovs_assert(inited);
15515 }
#define ovs_assert(CONDITION)
Definition: util.h:73
struct ovsdb_idl_column ovsrec_open_vswitch_columns[OVSREC_OPEN_VSWITCH_N_COLUMNS]
Definition: vswitch-idl.c:16288
Definition: vswitch-idl.h:1351
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:1289
static bool inited
Definition: vswitch-idl.c:18
void ovsdb_idl_txn_verify(const struct ovsdb_idl_row *, const struct ovsdb_idl_column *)
Definition: ovsdb-idl.c:2168
void ovsrec_open_vswitch_verify_system_version ( const struct ovsrec_open_vswitch row)
15544 {
15545  ovs_assert(inited);
15547 }
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: vswitch-idl.h:1352
struct ovsdb_idl_column ovsrec_open_vswitch_columns[OVSREC_OPEN_VSWITCH_N_COLUMNS]
Definition: vswitch-idl.c:16288
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:1289
static bool inited
Definition: vswitch-idl.c:18
void ovsdb_idl_txn_verify(const struct ovsdb_idl_row *, const struct ovsdb_idl_column *)
Definition: ovsdb-idl.c:2168
static struct ovsrec_port* ovsrec_port_cast ( const struct ovsdb_idl_row row)
static
89 {
90  return row ? CONTAINER_OF(row, struct ovsrec_port, header_) : NULL;
91 }
Definition: vswitch-idl.h:1436
#define CONTAINER_OF(POINTER, STRUCT, MEMBER)
Definition: util.h:207
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:1289
static void ovsrec_port_columns_init ( void  )
static
18699 {
18700  struct ovsdb_idl_column *c;
18701 
18702  /* Initialize ovsrec_port_col_bond_active_slave. */
18704  c->name = "bond_active_slave";
18706  c->type.key.u.string.minLen = 0;
18708  c->type.n_min = 0;
18709  c->type.n_max = 1;
18710  c->mutable = true;
18713 
18714  /* Initialize ovsrec_port_col_bond_downdelay. */
18716  c->name = "bond_downdelay";
18719  c->type.n_min = 1;
18720  c->type.n_max = 1;
18721  c->mutable = true;
18724 
18725  /* Initialize ovsrec_port_col_bond_fake_iface. */
18727  c->name = "bond_fake_iface";
18730  c->type.n_min = 1;
18731  c->type.n_max = 1;
18732  c->mutable = true;
18735 
18736  /* Initialize ovsrec_port_col_bond_mode. */
18738  c->name = "bond_mode";
18740  c->type.key.enum_ = xmalloc(sizeof *c->type.key.enum_);
18741  c->type.key.enum_->n = 3;
18742  c->type.key.enum_->keys = xmalloc(3 * sizeof *c->type.key.enum_->keys);
18743  c->type.key.enum_->keys[0].string = xstrdup("active-backup");
18744  c->type.key.enum_->keys[1].string = xstrdup("balance-slb");
18745  c->type.key.enum_->keys[2].string = xstrdup("balance-tcp");
18746  c->type.key.enum_->values = NULL;
18748  c->type.key.u.string.minLen = 0;
18750  c->type.n_min = 0;
18751  c->type.n_max = 1;
18752  c->mutable = true;
18755 
18756  /* Initialize ovsrec_port_col_bond_updelay. */
18758  c->name = "bond_updelay";
18761  c->type.n_min = 1;
18762  c->type.n_max = 1;
18763  c->mutable = true;
18766 
18767  /* Initialize ovsrec_port_col_external_ids. */
18769  c->name = "external_ids";
18771  c->type.key.u.string.minLen = 0;
18773  c->type.value.u.string.minLen = 0;
18774  c->type.n_min = 0;
18775  c->type.n_max = UINT_MAX;
18776  c->mutable = true;
18779 
18780  /* Initialize ovsrec_port_col_fake_bridge. */
18782  c->name = "fake_bridge";
18785  c->type.n_min = 1;
18786  c->type.n_max = 1;
18787  c->mutable = true;
18790 
18791  /* Initialize ovsrec_port_col_interfaces. */
18793  c->name = "interfaces";
18795  c->type.key.u.uuid.refTableName = "Interface";
18796  c->type.key.u.uuid.refType = OVSDB_REF_STRONG;
18798  c->type.n_min = 1;
18799  c->type.n_max = UINT_MAX;
18800  c->mutable = true;
18803 
18804  /* Initialize ovsrec_port_col_lacp. */
18805  c = &ovsrec_port_col_lacp;
18806  c->name = "lacp";
18808  c->type.key.enum_ = xmalloc(sizeof *c->type.key.enum_);
18809  c->type.key.enum_->n = 3;
18810  c->type.key.enum_->keys = xmalloc(3 * sizeof *c->type.key.enum_->keys);
18811  c->type.key.enum_->keys[0].string = xstrdup("active");
18812  c->type.key.enum_->keys[1].string = xstrdup("off");
18813  c->type.key.enum_->keys[2].string = xstrdup("passive");
18814  c->type.key.enum_->values = NULL;
18816  c->type.key.u.string.minLen = 0;
18818  c->type.n_min = 0;
18819  c->type.n_max = 1;
18820  c->mutable = true;
18823 
18824  /* Initialize ovsrec_port_col_mac. */
18825  c = &ovsrec_port_col_mac;
18826  c->name = "mac";
18828  c->type.key.u.string.minLen = 0;
18830  c->type.n_min = 0;
18831  c->type.n_max = 1;
18832  c->mutable = true;
18835 
18836  /* Initialize ovsrec_port_col_name. */
18837  c = &ovsrec_port_col_name;
18838  c->name = "name";
18840  c->type.key.u.string.minLen = 0;
18842  c->type.n_min = 1;
18843  c->type.n_max = 1;
18844  c->mutable = false;
18847 
18848  /* Initialize ovsrec_port_col_other_config. */
18850  c->name = "other_config";
18852  c->type.key.u.string.minLen = 0;
18854  c->type.value.u.string.minLen = 0;
18855  c->type.n_min = 0;
18856  c->type.n_max = UINT_MAX;
18857  c->mutable = true;
18860 
18861  /* Initialize ovsrec_port_col_qos. */
18862  c = &ovsrec_port_col_qos;
18863  c->name = "qos";
18865  c->type.key.u.uuid.refTableName = "QoS";
18866  c->type.key.u.uuid.refType = OVSDB_REF_STRONG;
18868  c->type.n_min = 0;
18869  c->type.n_max = 1;
18870  c->mutable = true;
18873 
18874  /* Initialize ovsrec_port_col_rstp_statistics. */
18876  c->name = "rstp_statistics";
18878  c->type.key.u.string.minLen = 0;
18880  c->type.n_min = 0;
18881  c->type.n_max = UINT_MAX;
18882  c->mutable = true;
18885 
18886  /* Initialize ovsrec_port_col_rstp_status. */
18888  c->name = "rstp_status";
18890  c->type.key.u.string.minLen = 0;
18892  c->type.value.u.string.minLen = 0;
18893  c->type.n_min = 0;
18894  c->type.n_max = UINT_MAX;
18895  c->mutable = true;
18898 
18899  /* Initialize ovsrec_port_col_statistics. */
18901  c->name = "statistics";
18903  c->type.key.u.string.minLen = 0;
18905  c->type.n_min = 0;
18906  c->type.n_max = UINT_MAX;
18907  c->mutable = true;
18910 
18911  /* Initialize ovsrec_port_col_status. */
18913  c->name = "status";
18915  c->type.key.u.string.minLen = 0;
18917  c->type.value.u.string.minLen = 0;
18918  c->type.n_min = 0;
18919  c->type.n_max = UINT_MAX;
18920  c->mutable = true;
18923 
18924  /* Initialize ovsrec_port_col_tag. */
18925  c = &ovsrec_port_col_tag;
18926  c->name = "tag";
18928  c->type.key.u.integer.min = INT64_C(0);
18929  c->type.key.u.integer.max = INT64_C(4095);
18931  c->type.n_min = 0;
18932  c->type.n_max = 1;
18933  c->mutable = true;
18936 
18937  /* Initialize ovsrec_port_col_trunks. */
18939  c->name = "trunks";
18941  c->type.key.u.integer.min = INT64_C(0);
18942  c->type.key.u.integer.max = INT64_C(4095);
18944  c->type.n_min = 0;
18945  c->type.n_max = 4096;
18946  c->mutable = true;
18949 
18950  /* Initialize ovsrec_port_col_vlan_mode. */
18952  c->name = "vlan_mode";
18954  c->type.key.enum_ = xmalloc(sizeof *c->type.key.enum_);
18955  c->type.key.enum_->n = 4;
18956  c->type.key.enum_->keys = xmalloc(4 * sizeof *c->type.key.enum_->keys);
18957  c->type.key.enum_->keys[0].string = xstrdup("access");
18958  c->type.key.enum_->keys[1].string = xstrdup("native-tagged");
18959  c->type.key.enum_->keys[2].string = xstrdup("native-untagged");
18960  c->type.key.enum_->keys[3].string = xstrdup("trunk");
18961  c->type.key.enum_->values = NULL;
18963  c->type.key.u.string.minLen = 0;
18965  c->type.n_min = 0;
18966  c->type.n_max = 1;
18967  c->mutable = true;
18970 }
static void ovsrec_port_unparse_qos(struct ovsdb_idl_row *row OVS_UNUSED)
Definition: vswitch-idl.c:16856
void(* unparse)(struct ovsdb_idl_row *)
Definition: ovsdb-idl-provider.h:46
static void ovsrec_port_unparse_interfaces(struct ovsdb_idl_row *row_)
Definition: vswitch-idl.c:16820
Definition: ovsdb-idl-provider.h:41
#define ovsrec_port_col_qos
Definition: vswitch-idl.h:1533
#define ovsrec_port_col_fake_bridge
Definition: vswitch-idl.h:1548
static void ovsrec_port_unparse_external_ids(struct ovsdb_idl_row *row_)
Definition: vswitch-idl.c:16805
static void ovsrec_port_parse_lacp(struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
Definition: vswitch-idl.c:16585
#define ovsrec_port_col_bond_updelay
Definition: vswitch-idl.h:1549
struct ovsdb_base_type::@145::ovsdb_string_constraints string
#define ovsrec_port_col_rstp_status
Definition: vswitch-idl.h:1542
#define ovsrec_port_col_lacp
Definition: vswitch-idl.h:1541
void ovsdb_base_type_init(struct ovsdb_base_type *base, enum ovsdb_atomic_type type)
Definition: ovsdb-types.c:117
union ovsdb_base_type::@145 u
static void ovsrec_port_unparse_bond_active_slave(struct ovsdb_idl_row *row OVS_UNUSED)
Definition: vswitch-idl.c:16775
unsigned int n_min
Definition: ovsdb-types.h:136
static void ovsrec_port_parse_name(struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
Definition: vswitch-idl.c:16611
struct ovsdb_base_type key
Definition: ovsdb-types.h:134
static void ovsrec_port_parse_bond_downdelay(struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
Definition: vswitch-idl.c:16484
static void ovsrec_port_unparse_rstp_statistics(struct ovsdb_idl_row *row_)
Definition: vswitch-idl.c:16862
void(* parse)(struct ovsdb_idl_row *, const struct ovsdb_datum *)
Definition: ovsdb-idl-provider.h:45
#define ovsrec_port_col_status
Definition: vswitch-idl.h:1531
unsigned int n_max
Definition: ovsdb-types.h:137
char * string
Definition: ovsdb-data.h:33
static void ovsrec_port_unparse_bond_mode(struct ovsdb_idl_row *row OVS_UNUSED)
Definition: vswitch-idl.c:16793
static void ovsrec_port_unparse_tag(struct ovsdb_idl_row *row_)
Definition: vswitch-idl.c:16900
Definition: ovsdb-types.h:33
static void ovsrec_port_parse_rstp_status(struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
Definition: vswitch-idl.c:16673
struct ovsdb_base_type value
Definition: ovsdb-types.h:135
char * name
Definition: ovsdb-idl-provider.h:42
static void ovsrec_port_unparse_trunks(struct ovsdb_idl_row *row_)
Definition: vswitch-idl.c:16909
static void ovsrec_port_unparse_other_config(struct ovsdb_idl_row *row_)
Definition: vswitch-idl.c:16847
Definition: ovsdb-types.h:34
void ovsdb_datum_sort_assert(struct ovsdb_datum *datum, enum ovsdb_atomic_type key_type)
Definition: ovsdb-data.c:1074
union ovsdb_atom * keys
Definition: ovsdb-data.h:127
Definition: ovsdb-types.h:30
static void ovsrec_port_unparse_status(struct ovsdb_idl_row *row_)
Definition: vswitch-idl.c:16891
void * xmalloc(size_t size)
Definition: util.c:110
#define ovsrec_port_col_rstp_statistics
Definition: vswitch-idl.h:1543
static void ovsrec_port_unparse_bond_downdelay(struct ovsdb_idl_row *row OVS_UNUSED)
Definition: vswitch-idl.c:16781
static void ovsrec_port_unparse_mac(struct ovsdb_idl_row *row OVS_UNUSED)
Definition: vswitch-idl.c:16835
static void ovsrec_port_parse_trunks(struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
Definition: vswitch-idl.c:16743
union ovsdb_atom * values
Definition: ovsdb-data.h:128
char * xstrdup(const char *s)
Definition: util.c:149
#define ovsrec_port_col_interfaces
Definition: vswitch-idl.h:1536
static void ovsrec_port_unparse_bond_updelay(struct ovsdb_idl_row *row OVS_UNUSED)
Definition: vswitch-idl.c:16799
#define ovsrec_port_col_other_config
Definition: vswitch-idl.h:1537
static void ovsrec_port_parse_bond_active_slave(struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
Definition: vswitch-idl.c:16471
static void ovsrec_port_parse_statistics(struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
Definition: vswitch-idl.c:16688
struct ovsdb_type type
Definition: ovsdb-idl-provider.h:43
static void ovsrec_port_parse_other_config(struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
Definition: vswitch-idl.c:16624
unsigned int n
Definition: ovsdb-data.h:126
static void ovsrec_port_parse_tag(struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
Definition: vswitch-idl.c:16724
struct ovsdb_base_type::@145::ovsdb_uuid_constraints uuid
#define ovsrec_port_col_bond_active_slave
Definition: vswitch-idl.h:1540
#define ovsrec_port_col_bond_fake_iface
Definition: vswitch-idl.h:1538
#define ovsrec_port_col_statistics
Definition: vswitch-idl.h:1532
static void ovsrec_port_parse_interfaces(struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
Definition: vswitch-idl.c:16564
static void ovsrec_port_parse_bond_mode(struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
Definition: vswitch-idl.c:16510
static void ovsrec_port_parse_vlan_mode(struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
Definition: vswitch-idl.c:16762
static void ovsrec_port_parse_bond_fake_iface(struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
Definition: vswitch-idl.c:16497
static void ovsrec_port_parse_mac(struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
Definition: vswitch-idl.c:16598
bool mutable
Definition: ovsdb-idl-provider.h:44
static void ovsrec_port_unparse_bond_fake_iface(struct ovsdb_idl_row *row OVS_UNUSED)
Definition: vswitch-idl.c:16787
Definition: ovsdb-types.h:29
static void ovsrec_port_unparse_rstp_status(struct ovsdb_idl_row *row_)
Definition: vswitch-idl.c:16872
#define ovsrec_port_col_bond_downdelay
Definition: vswitch-idl.h:1535
#define ovsrec_port_col_external_ids
Definition: vswitch-idl.h:1547
static void ovsrec_port_unparse_fake_bridge(struct ovsdb_idl_row *row OVS_UNUSED)
Definition: vswitch-idl.c:16814
static void ovsrec_port_parse_status(struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
Definition: vswitch-idl.c:16709
struct ovsdb_base_type::@145::ovsdb_integer_constraints integer
static void ovsrec_port_parse_qos(struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
Definition: vswitch-idl.c:16639
#define ovsrec_port_col_mac
Definition: vswitch-idl.h:1539
static void ovsrec_port_parse_fake_bridge(struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
Definition: vswitch-idl.c:16551
static void ovsrec_port_unparse_statistics(struct ovsdb_idl_row *row_)
Definition: vswitch-idl.c:16881
static void ovsrec_port_parse_external_ids(struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
Definition: vswitch-idl.c:16536
static void ovsrec_port_unparse_name(struct ovsdb_idl_row *row OVS_UNUSED)
Definition: vswitch-idl.c:16841
#define ovsrec_port_col_tag
Definition: vswitch-idl.h:1544
static void ovsrec_port_parse_bond_updelay(struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
Definition: vswitch-idl.c:16523
Definition: ovsdb-types.h:48
Definition: ovsdb-types.h:32
static void ovsrec_port_unparse_vlan_mode(struct ovsdb_idl_row *row OVS_UNUSED)
Definition: vswitch-idl.c:16918
static void ovsrec_port_parse_rstp_statistics(struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
Definition: vswitch-idl.c:16652
#define ovsrec_port_col_trunks
Definition: vswitch-idl.h:1545
struct ovsdb_datum * enum_
Definition: ovsdb-types.h:57
#define ovsrec_port_col_bond_mode
Definition: vswitch-idl.h:1550
#define ovsrec_port_col_name
Definition: vswitch-idl.h:1534
#define ovsrec_port_col_vlan_mode
Definition: vswitch-idl.h:1546
static void ovsrec_port_unparse_lacp(struct ovsdb_idl_row *row OVS_UNUSED)
Definition: vswitch-idl.c:16829
void ovsrec_port_delete ( const struct ovsrec_port row)
16974 {
16976 }
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:1437
void ovsdb_idl_txn_delete(const struct ovsdb_idl_row *row_)
Definition: ovsdb-idl.c:2208
const struct ovsrec_port* ovsrec_port_first ( const struct ovsdb_idl idl)
16956 {
16958 }
struct ovsdb_idl_table_class ovsrec_table_classes[OVSREC_N_TABLES]
Definition: vswitch-idl.c:21482
static struct ovsrec_port * ovsrec_port_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:88
Definition: vswitch-idl.h:1925
const struct ovsdb_idl_row * ovsdb_idl_first_row(const struct ovsdb_idl *idl, const struct ovsdb_idl_table_class *table_class)
Definition: ovsdb-idl.c:1290
const struct ovsdb_datum* ovsrec_port_get_bond_active_slave ( const struct ovsrec_port row,
enum ovsdb_atomic_type key_type  OVS_UNUSED 
)
17653 {
17654  ovs_assert(key_type == OVSDB_TYPE_STRING);
17656 }
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: ovsdb-types.h:33
#define ovsrec_port_col_bond_active_slave
Definition: vswitch-idl.h:1540
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:1437
const struct ovsdb_datum * ovsdb_idl_read(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column)
Definition: ovsdb-idl.c:1320
const struct ovsdb_datum* ovsrec_port_get_bond_downdelay ( const struct ovsrec_port row,
enum ovsdb_atomic_type key_type  OVS_UNUSED 
)
17680 {
17681  ovs_assert(key_type == OVSDB_TYPE_INTEGER);
17683 }
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: ovsdb-types.h:30
#define ovsrec_port_col_bond_downdelay
Definition: vswitch-idl.h:1535
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:1437
const struct ovsdb_datum * ovsdb_idl_read(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column)
Definition: ovsdb-idl.c:1320
const struct ovsdb_datum* ovsrec_port_get_bond_fake_iface ( const struct ovsrec_port row,
enum ovsdb_atomic_type key_type  OVS_UNUSED 
)
17707 {
17708  ovs_assert(key_type == OVSDB_TYPE_BOOLEAN);
17710 }
#define ovs_assert(CONDITION)
Definition: util.h:73
#define ovsrec_port_col_bond_fake_iface
Definition: vswitch-idl.h:1538
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:1437
const struct ovsdb_datum * ovsdb_idl_read(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column)
Definition: ovsdb-idl.c:1320
Definition: ovsdb-types.h:32
const struct ovsdb_datum* ovsrec_port_get_bond_mode ( const struct ovsrec_port row,
enum ovsdb_atomic_type key_type  OVS_UNUSED 
)
17734 {
17735  ovs_assert(key_type == OVSDB_TYPE_STRING);
17737 }
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: ovsdb-types.h:33
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:1437
const struct ovsdb_datum * ovsdb_idl_read(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column)
Definition: ovsdb-idl.c:1320
#define ovsrec_port_col_bond_mode
Definition: vswitch-idl.h:1550
const struct ovsdb_datum* ovsrec_port_get_bond_updelay ( const struct ovsrec_port row,
enum ovsdb_atomic_type key_type  OVS_UNUSED 
)
17761 {
17762  ovs_assert(key_type == OVSDB_TYPE_INTEGER);
17764 }
#define ovsrec_port_col_bond_updelay
Definition: vswitch-idl.h:1549
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: ovsdb-types.h:30
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:1437
const struct ovsdb_datum * ovsdb_idl_read(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column)
Definition: ovsdb-idl.c:1320
const struct ovsdb_datum* ovsrec_port_get_external_ids ( const struct ovsrec_port row,
enum ovsdb_atomic_type key_type  OVS_UNUSED,
enum ovsdb_atomic_type value_type  OVS_UNUSED 
)
17790 {
17791  ovs_assert(key_type == OVSDB_TYPE_STRING);
17792  ovs_assert(value_type == OVSDB_TYPE_STRING);
17794 }
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: ovsdb-types.h:33
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:1437
#define ovsrec_port_col_external_ids
Definition: vswitch-idl.h:1547
const struct ovsdb_datum * ovsdb_idl_read(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column)
Definition: ovsdb-idl.c:1320
const struct ovsdb_datum* ovsrec_port_get_fake_bridge ( const struct ovsrec_port row,
enum ovsdb_atomic_type key_type  OVS_UNUSED 
)
17818 {
17819  ovs_assert(key_type == OVSDB_TYPE_BOOLEAN);
17821 }
#define ovsrec_port_col_fake_bridge
Definition: vswitch-idl.h:1548
#define ovs_assert(CONDITION)
Definition: util.h:73
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:1437
const struct ovsdb_datum * ovsdb_idl_read(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column)
Definition: ovsdb-idl.c:1320
Definition: ovsdb-types.h:32
const struct ovsrec_port* ovsrec_port_get_for_uuid ( const struct ovsdb_idl idl,
const struct uuid uuid 
)
16944 {
16946 }
const struct ovsdb_idl_row * ovsdb_idl_get_row_for_uuid(const struct ovsdb_idl *idl, const struct ovsdb_idl_table_class *tc, const struct uuid *uuid)
Definition: ovsdb-idl.c:1262
struct ovsdb_idl_table_class ovsrec_table_classes[OVSREC_N_TABLES]
Definition: vswitch-idl.c:21482
static struct ovsrec_port * ovsrec_port_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:88
Definition: vswitch-idl.h:1925
const struct ovsdb_datum* ovsrec_port_get_interfaces ( const struct ovsrec_port row,
enum ovsdb_atomic_type key_type  OVS_UNUSED 
)
17845 {
17846  ovs_assert(key_type == OVSDB_TYPE_UUID);
17848 }
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: ovsdb-types.h:34
#define ovsrec_port_col_interfaces
Definition: vswitch-idl.h:1536
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:1437
const struct ovsdb_datum * ovsdb_idl_read(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column)
Definition: ovsdb-idl.c:1320
const struct ovsdb_datum* ovsrec_port_get_lacp ( const struct ovsrec_port row,
enum ovsdb_atomic_type key_type  OVS_UNUSED 
)
17872 {
17873  ovs_assert(key_type == OVSDB_TYPE_STRING);
17875 }
#define ovsrec_port_col_lacp
Definition: vswitch-idl.h:1541
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: ovsdb-types.h:33
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:1437
const struct ovsdb_datum * ovsdb_idl_read(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column)
Definition: ovsdb-idl.c:1320
const struct ovsdb_datum* ovsrec_port_get_mac ( const struct ovsrec_port row,
enum ovsdb_atomic_type key_type  OVS_UNUSED 
)
17899 {
17900  ovs_assert(key_type == OVSDB_TYPE_STRING);
17901  return ovsdb_idl_read(&row->header_, &ovsrec_port_col_mac);
17902 }
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: ovsdb-types.h:33
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:1437
const struct ovsdb_datum * ovsdb_idl_read(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column)
Definition: ovsdb-idl.c:1320
#define ovsrec_port_col_mac
Definition: vswitch-idl.h:1539
const struct ovsdb_datum* ovsrec_port_get_name ( const struct ovsrec_port row,
enum ovsdb_atomic_type key_type  OVS_UNUSED 
)
17926 {
17927  ovs_assert(key_type == OVSDB_TYPE_STRING);
17929 }
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: ovsdb-types.h:33
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:1437
const struct ovsdb_datum * ovsdb_idl_read(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column)
Definition: ovsdb-idl.c:1320
#define ovsrec_port_col_name
Definition: vswitch-idl.h:1534
const struct ovsdb_datum* ovsrec_port_get_other_config ( const struct ovsrec_port row,
enum ovsdb_atomic_type key_type  OVS_UNUSED,
enum ovsdb_atomic_type value_type  OVS_UNUSED 
)
17955 {
17956  ovs_assert(key_type == OVSDB_TYPE_STRING);
17957  ovs_assert(value_type == OVSDB_TYPE_STRING);
17959 }
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: ovsdb-types.h:33
#define ovsrec_port_col_other_config
Definition: vswitch-idl.h:1537
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:1437
const struct ovsdb_datum * ovsdb_idl_read(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column)
Definition: ovsdb-idl.c:1320
const struct ovsdb_datum* ovsrec_port_get_qos ( const struct ovsrec_port row,
enum ovsdb_atomic_type key_type  OVS_UNUSED 
)
17983 {
17984  ovs_assert(key_type == OVSDB_TYPE_UUID);
17985  return ovsdb_idl_read(&row->header_, &ovsrec_port_col_qos);
17986 }
#define ovsrec_port_col_qos
Definition: vswitch-idl.h:1533
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: ovsdb-types.h:34
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:1437
const struct ovsdb_datum * ovsdb_idl_read(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column)
Definition: ovsdb-idl.c:1320
const struct ovsdb_datum* ovsrec_port_get_rstp_statistics ( const struct ovsrec_port row,
enum ovsdb_atomic_type key_type  OVS_UNUSED,
enum ovsdb_atomic_type value_type  OVS_UNUSED 
)
18012 {
18013  ovs_assert(key_type == OVSDB_TYPE_STRING);
18014  ovs_assert(value_type == OVSDB_TYPE_INTEGER);
18016 }
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: ovsdb-types.h:33
Definition: ovsdb-types.h:30
#define ovsrec_port_col_rstp_statistics
Definition: vswitch-idl.h:1543
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:1437
const struct ovsdb_datum * ovsdb_idl_read(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column)
Definition: ovsdb-idl.c:1320
const struct ovsdb_datum* ovsrec_port_get_rstp_status ( const struct ovsrec_port row,
enum ovsdb_atomic_type key_type  OVS_UNUSED,
enum ovsdb_atomic_type value_type  OVS_UNUSED 
)
18042 {
18043  ovs_assert(key_type == OVSDB_TYPE_STRING);
18044  ovs_assert(value_type == OVSDB_TYPE_STRING);
18046 }
#define ovsrec_port_col_rstp_status
Definition: vswitch-idl.h:1542
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: ovsdb-types.h:33
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:1437
const struct ovsdb_datum * ovsdb_idl_read(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column)
Definition: ovsdb-idl.c:1320
const struct ovsdb_datum* ovsrec_port_get_statistics ( const struct ovsrec_port row,
enum ovsdb_atomic_type key_type  OVS_UNUSED,
enum ovsdb_atomic_type value_type  OVS_UNUSED 
)
18072 {
18073  ovs_assert(key_type == OVSDB_TYPE_STRING);
18074  ovs_assert(value_type == OVSDB_TYPE_INTEGER);
18076 }
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: ovsdb-types.h:33
Definition: ovsdb-types.h:30
#define ovsrec_port_col_statistics
Definition: vswitch-idl.h:1532
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:1437
const struct ovsdb_datum * ovsdb_idl_read(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column)
Definition: ovsdb-idl.c:1320
const struct ovsdb_datum* ovsrec_port_get_status ( const struct ovsrec_port row,
enum ovsdb_atomic_type key_type  OVS_UNUSED,
enum ovsdb_atomic_type value_type  OVS_UNUSED 
)
18102 {
18103  ovs_assert(key_type == OVSDB_TYPE_STRING);
18104  ovs_assert(value_type == OVSDB_TYPE_STRING);
18106 }
#define ovs_assert(CONDITION)
Definition: util.h:73
#define ovsrec_port_col_status
Definition: vswitch-idl.h:1531
Definition: ovsdb-types.h:33
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:1437
const struct ovsdb_datum * ovsdb_idl_read(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column)
Definition: ovsdb-idl.c:1320
const struct ovsdb_datum* ovsrec_port_get_tag ( const struct ovsrec_port row,
enum ovsdb_atomic_type key_type  OVS_UNUSED 
)
18130 {
18131  ovs_assert(key_type == OVSDB_TYPE_INTEGER);
18132  return ovsdb_idl_read(&row->header_, &ovsrec_port_col_tag);
18133 }
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: ovsdb-types.h:30
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:1437
const struct ovsdb_datum * ovsdb_idl_read(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column)
Definition: ovsdb-idl.c:1320
#define ovsrec_port_col_tag
Definition: vswitch-idl.h:1544
const struct ovsdb_datum* ovsrec_port_get_trunks ( const struct ovsrec_port row,
enum ovsdb_atomic_type key_type  OVS_UNUSED 
)
18157 {
18158  ovs_assert(key_type == OVSDB_TYPE_INTEGER);
18160 }
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: ovsdb-types.h:30
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:1437
const struct ovsdb_datum * ovsdb_idl_read(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column)
Definition: ovsdb-idl.c:1320
#define ovsrec_port_col_trunks
Definition: vswitch-idl.h:1545
const struct ovsdb_datum* ovsrec_port_get_vlan_mode ( const struct ovsrec_port row,
enum ovsdb_atomic_type key_type  OVS_UNUSED 
)
18184 {
18185  ovs_assert(key_type == OVSDB_TYPE_STRING);
18187 }
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: ovsdb-types.h:33
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:1437
const struct ovsdb_datum * ovsdb_idl_read(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column)
Definition: ovsdb-idl.c:1320
#define ovsrec_port_col_vlan_mode
Definition: vswitch-idl.h:1546
void ovsrec_port_init ( struct ovsrec_port row)
16932 {
16933  memset(row, 0, sizeof *row);
16934  smap_init(&row->external_ids);
16935  smap_init(&row->other_config);
16936  smap_init(&row->rstp_status);
16937  smap_init(&row->status);
16938 }
void smap_init(struct smap *smap)
Definition: smap.c:33
struct smap status
Definition: vswitch-idl.h:1493
struct smap rstp_status
Definition: vswitch-idl.h:1485
struct smap external_ids
Definition: vswitch-idl.h:1455
struct smap other_config
Definition: vswitch-idl.h:1474
static void ovsrec_port_init__ ( struct ovsdb_idl_row row)
static
16925 {
16927 }
static struct ovsrec_port * ovsrec_port_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:88
void ovsrec_port_init(struct ovsrec_port *row)
Definition: vswitch-idl.c:16931
struct ovsrec_port* ovsrec_port_insert ( struct ovsdb_idl_txn txn)
16987 {
16989 }
struct ovsdb_idl_table_class ovsrec_table_classes[OVSREC_N_TABLES]
Definition: vswitch-idl.c:21482
const struct ovsdb_idl_row * ovsdb_idl_txn_insert(struct ovsdb_idl_txn *txn, const struct ovsdb_idl_table_class *class, const struct uuid *uuid)
Definition: ovsdb-idl.c:2247
static struct ovsrec_port * ovsrec_port_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:88
Definition: vswitch-idl.h:1925
const struct ovsrec_port* ovsrec_port_next ( const struct ovsrec_port row)
16964 {
16966 }
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:1437
static struct ovsrec_port * ovsrec_port_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:88
const struct ovsdb_idl_row * ovsdb_idl_next_row(const struct ovsdb_idl_row *row)
Definition: ovsdb-idl.c:1301
static void ovsrec_port_parse_bond_active_slave ( struct ovsdb_idl_row row_,
const struct ovsdb_datum datum 
)
static
16472 {
16473  struct ovsrec_port *row = ovsrec_port_cast(row_);
16474 
16475  ovs_assert(inited);
16476  if (datum->n >= 1) {
16477  row->bond_active_slave = datum->keys[0].string;
16478  } else {
16479  row->bond_active_slave = NULL;
16480  }
16481 }
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: vswitch-idl.h:1436
char * string
Definition: ovsdb-data.h:33
union ovsdb_atom * keys
Definition: ovsdb-data.h:127
static bool inited
Definition: vswitch-idl.c:18
unsigned int n
Definition: ovsdb-data.h:126
static struct ovsrec_port * ovsrec_port_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:88
char * bond_active_slave
Definition: vswitch-idl.h:1440
static void ovsrec_port_parse_bond_downdelay ( struct ovsdb_idl_row row_,
const struct ovsdb_datum datum 
)
static
16485 {
16486  struct ovsrec_port *row = ovsrec_port_cast(row_);
16487 
16488  ovs_assert(inited);
16489  if (datum->n >= 1) {
16490  row->bond_downdelay = datum->keys[0].integer;
16491  } else {
16492  row->bond_downdelay = 0;
16493  }
16494 }
int64_t integer
Definition: ovsdb-data.h:30
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: vswitch-idl.h:1436
union ovsdb_atom * keys
Definition: ovsdb-data.h:127
static bool inited
Definition: vswitch-idl.c:18
int64_t bond_downdelay
Definition: vswitch-idl.h:1443
unsigned int n
Definition: ovsdb-data.h:126
static struct ovsrec_port * ovsrec_port_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:88
static void ovsrec_port_parse_bond_fake_iface ( struct ovsdb_idl_row row_,
const struct ovsdb_datum datum 
)
static
16498 {
16499  struct ovsrec_port *row = ovsrec_port_cast(row_);
16500 
16501  ovs_assert(inited);
16502  if (datum->n >= 1) {
16503  row->bond_fake_iface = datum->keys[0].boolean;
16504  } else {
16505  row->bond_fake_iface = false;
16506  }
16507 }
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: vswitch-idl.h:1436
union ovsdb_atom * keys
Definition: ovsdb-data.h:127
bool boolean
Definition: ovsdb-data.h:32
static bool inited
Definition: vswitch-idl.c:18
unsigned int n
Definition: ovsdb-data.h:126
bool bond_fake_iface
Definition: vswitch-idl.h:1446
static struct ovsrec_port * ovsrec_port_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:88
static void ovsrec_port_parse_bond_mode ( struct ovsdb_idl_row row_,
const struct ovsdb_datum datum 
)
static
16511 {
16512  struct ovsrec_port *row = ovsrec_port_cast(row_);
16513 
16514  ovs_assert(inited);
16515  if (datum->n >= 1) {
16516  row->bond_mode = datum->keys[0].string;
16517  } else {
16518  row->bond_mode = NULL;
16519  }
16520 }
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: vswitch-idl.h:1436
char * string
Definition: ovsdb-data.h:33
union ovsdb_atom * keys
Definition: ovsdb-data.h:127
static bool inited
Definition: vswitch-idl.c:18
char * bond_mode
Definition: vswitch-idl.h:1449
unsigned int n
Definition: ovsdb-data.h:126
static struct ovsrec_port * ovsrec_port_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:88
static void ovsrec_port_parse_bond_updelay ( struct ovsdb_idl_row row_,
const struct ovsdb_datum datum 
)
static
16524 {
16525  struct ovsrec_port *row = ovsrec_port_cast(row_);
16526 
16527  ovs_assert(inited);
16528  if (datum->n >= 1) {
16529  row->bond_updelay = datum->keys[0].integer;
16530  } else {
16531  row->bond_updelay = 0;
16532  }
16533 }
int64_t integer
Definition: ovsdb-data.h:30
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: vswitch-idl.h:1436
union ovsdb_atom * keys
Definition: ovsdb-data.h:127
static bool inited
Definition: vswitch-idl.c:18
unsigned int n
Definition: ovsdb-data.h:126
int64_t bond_updelay
Definition: vswitch-idl.h:1452
static struct ovsrec_port * ovsrec_port_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:88
static void ovsrec_port_parse_external_ids ( struct ovsdb_idl_row row_,
const struct ovsdb_datum datum 
)
static
16537 {
16538  struct ovsrec_port *row = ovsrec_port_cast(row_);
16539  size_t i;
16540 
16541  ovs_assert(inited);
16542  smap_init(&row->external_ids);
16543  for (i = 0; i < datum->n; i++) {
16544  smap_add(&row->external_ids,
16545  datum->keys[i].string,
16546  datum->values[i].string);
16547  }
16548 }
#define ovs_assert(CONDITION)
Definition: util.h:73
void smap_init(struct smap *smap)
Definition: smap.c:33
Definition: vswitch-idl.h:1436
char * string
Definition: ovsdb-data.h:33
struct smap_node * smap_add(struct smap *smap, const char *key, const char *value)
Definition: smap.c:50
union ovsdb_atom * keys
Definition: ovsdb-data.h:127
struct smap external_ids
Definition: vswitch-idl.h:1455
union ovsdb_atom * values
Definition: ovsdb-data.h:128
static bool inited
Definition: vswitch-idl.c:18
unsigned int n
Definition: ovsdb-data.h:126
static struct ovsrec_port * ovsrec_port_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:88
static void ovsrec_port_parse_fake_bridge ( struct ovsdb_idl_row row_,
const struct ovsdb_datum datum 
)
static
16552 {
16553  struct ovsrec_port *row = ovsrec_port_cast(row_);
16554 
16555  ovs_assert(inited);
16556  if (datum->n >= 1) {
16557  row->fake_bridge = datum->keys[0].boolean;
16558  } else {
16559  row->fake_bridge = false;
16560  }
16561 }
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: vswitch-idl.h:1436
union ovsdb_atom * keys
Definition: ovsdb-data.h:127
bool boolean
Definition: ovsdb-data.h:32
static bool inited
Definition: vswitch-idl.c:18
unsigned int n
Definition: ovsdb-data.h:126
static struct ovsrec_port * ovsrec_port_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:88
bool fake_bridge
Definition: vswitch-idl.h:1458
static void ovsrec_port_parse_interfaces ( struct ovsdb_idl_row row_,
const struct ovsdb_datum datum 
)
static
16565 {
16566  struct ovsrec_port *row = ovsrec_port_cast(row_);
16567  size_t i;
16568 
16569  ovs_assert(inited);
16570  row->interfaces = NULL;
16571  row->n_interfaces = 0;
16572  for (i = 0; i < datum->n; i++) {
16574  if (keyRow) {
16575  if (!row->n_interfaces) {
16576  row->interfaces = xmalloc(datum->n * sizeof *row->interfaces);
16577  }
16578  row->interfaces[row->n_interfaces] = keyRow;
16579  row->n_interfaces++;
16580  }
16581  }
16582 }
size_t n_interfaces
Definition: vswitch-idl.h:1462
struct ovsdb_idl_table_class ovsrec_table_classes[OVSREC_N_TABLES]
Definition: vswitch-idl.c:21482
#define ovs_assert(CONDITION)
Definition: util.h:73
struct ovsdb_idl_row * ovsdb_idl_get_row_arc(struct ovsdb_idl_row *src, struct ovsdb_idl_table_class *dst_table, const struct uuid *dst_uuid)
Definition: ovsdb-idl.c:1216
Definition: vswitch-idl.h:1436
union ovsdb_atom * keys
Definition: ovsdb-data.h:127
void * xmalloc(size_t size)
Definition: util.c:110
Definition: vswitch-idl.h:694
Definition: vswitch-idl.h:1920
static bool inited
Definition: vswitch-idl.c:18
unsigned int n
Definition: ovsdb-data.h:126
struct uuid uuid
Definition: ovsdb-data.h:34
static struct ovsrec_port * ovsrec_port_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:88
struct ovsrec_interface ** interfaces
Definition: vswitch-idl.h:1461
static struct ovsrec_interface * ovsrec_interface_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:58
static void ovsrec_port_parse_lacp ( struct ovsdb_idl_row row_,
const struct ovsdb_datum datum 
)
static
16586 {
16587  struct ovsrec_port *row = ovsrec_port_cast(row_);
16588 
16589  ovs_assert(inited);
16590  if (datum->n >= 1) {
16591  row->lacp = datum->keys[0].string;
16592  } else {
16593  row->lacp = NULL;
16594  }
16595 }
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: vswitch-idl.h:1436
char * string
Definition: ovsdb-data.h:33
union ovsdb_atom * keys
Definition: ovsdb-data.h:127
static bool inited
Definition: vswitch-idl.c:18
unsigned int n
Definition: ovsdb-data.h:126
char * lacp
Definition: vswitch-idl.h:1465
static struct ovsrec_port * ovsrec_port_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:88
static void ovsrec_port_parse_mac ( struct ovsdb_idl_row row_,
const struct ovsdb_datum datum 
)
static
16599 {
16600  struct ovsrec_port *row = ovsrec_port_cast(row_);
16601 
16602  ovs_assert(inited);
16603  if (datum->n >= 1) {
16604  row->mac = datum->keys[0].string;
16605  } else {
16606  row->mac = NULL;
16607  }
16608 }
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: vswitch-idl.h:1436
char * string
Definition: ovsdb-data.h:33
union ovsdb_atom * keys
Definition: ovsdb-data.h:127
static bool inited
Definition: vswitch-idl.c:18
unsigned int n
Definition: ovsdb-data.h:126
static struct ovsrec_port * ovsrec_port_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:88
char * mac
Definition: vswitch-idl.h:1468
static void ovsrec_port_parse_name ( struct ovsdb_idl_row row_,
const struct ovsdb_datum datum 
)
static
16612 {
16613  struct ovsrec_port *row = ovsrec_port_cast(row_);
16614 
16615  ovs_assert(inited);
16616  if (datum->n >= 1) {
16617  row->name = datum->keys[0].string;
16618  } else {
16619  row->name = "";
16620  }
16621 }
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: vswitch-idl.h:1436
char * string
Definition: ovsdb-data.h:33
union ovsdb_atom * keys
Definition: ovsdb-data.h:127
static bool inited
Definition: vswitch-idl.c:18
unsigned int n
Definition: ovsdb-data.h:126
char * name
Definition: vswitch-idl.h:1471
static struct ovsrec_port * ovsrec_port_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:88
static void ovsrec_port_parse_other_config ( struct ovsdb_idl_row row_,
const struct ovsdb_datum datum 
)
static
16625 {
16626  struct ovsrec_port *row = ovsrec_port_cast(row_);
16627  size_t i;
16628 
16629  ovs_assert(inited);
16630  smap_init(&row->other_config);
16631  for (i = 0; i < datum->n; i++) {
16632  smap_add(&row->other_config,
16633  datum->keys[i].string,
16634  datum->values[i].string);
16635  }
16636 }
#define ovs_assert(CONDITION)
Definition: util.h:73
void smap_init(struct smap *smap)
Definition: smap.c:33
Definition: vswitch-idl.h:1436
char * string
Definition: ovsdb-data.h:33
struct smap_node * smap_add(struct smap *smap, const char *key, const char *value)
Definition: smap.c:50
union ovsdb_atom * keys
Definition: ovsdb-data.h:127
union ovsdb_atom * values
Definition: ovsdb-data.h:128
static bool inited
Definition: vswitch-idl.c:18
struct smap other_config
Definition: vswitch-idl.h:1474
unsigned int n
Definition: ovsdb-data.h:126
static struct ovsrec_port * ovsrec_port_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:88
static void ovsrec_port_parse_qos ( struct ovsdb_idl_row row_,
const struct ovsdb_datum datum 
)
static
16640 {
16641  struct ovsrec_port *row = ovsrec_port_cast(row_);
16642 
16643  ovs_assert(inited);
16644  if (datum->n >= 1) {
16646  } else {
16647  row->qos = NULL;
16648  }
16649 }
struct ovsdb_idl_table_class ovsrec_table_classes[OVSREC_N_TABLES]
Definition: vswitch-idl.c:21482
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: vswitch-idl.h:1926
struct ovsdb_idl_row * ovsdb_idl_get_row_arc(struct ovsdb_idl_row *src, struct ovsdb_idl_table_class *dst_table, const struct uuid *dst_uuid)
Definition: ovsdb-idl.c:1216
Definition: vswitch-idl.h:1436
union ovsdb_atom * keys
Definition: ovsdb-data.h:127
static struct ovsrec_qos * ovsrec_qos_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:94
static bool inited
Definition: vswitch-idl.c:18
unsigned int n
Definition: ovsdb-data.h:126
struct uuid uuid
Definition: ovsdb-data.h:34
static struct ovsrec_port * ovsrec_port_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:88
struct ovsrec_qos * qos
Definition: vswitch-idl.h:1477
static void ovsrec_port_parse_rstp_statistics ( struct ovsdb_idl_row row_,
const struct ovsdb_datum datum 
)
static
16653 {
16654  struct ovsrec_port *row = ovsrec_port_cast(row_);
16655  size_t i;
16656 
16657  ovs_assert(inited);
16658  row->key_rstp_statistics = NULL;
16659  row->value_rstp_statistics = NULL;
16660  row->n_rstp_statistics = 0;
16661  for (i = 0; i < datum->n; i++) {
16662  if (!row->n_rstp_statistics) {
16663  row->key_rstp_statistics = xmalloc(datum->n * sizeof *row->key_rstp_statistics);
16664  row->value_rstp_statistics = xmalloc(datum->n * sizeof *row->value_rstp_statistics);
16665  }
16666  row->key_rstp_statistics[row->n_rstp_statistics] = datum->keys[i].string;
16667  row->value_rstp_statistics[row->n_rstp_statistics] = datum->values[i].integer;
16668  row->n_rstp_statistics++;
16669  }
16670 }
int64_t integer
Definition: ovsdb-data.h:30
char ** key_rstp_statistics
Definition: vswitch-idl.h:1480
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: vswitch-idl.h:1436
char * string
Definition: ovsdb-data.h:33
union ovsdb_atom * keys
Definition: ovsdb-data.h:127
void * xmalloc(size_t size)
Definition: util.c:110
union ovsdb_atom * values
Definition: ovsdb-data.h:128
int64_t * value_rstp_statistics
Definition: vswitch-idl.h:1481
static bool inited
Definition: vswitch-idl.c:18
unsigned int n
Definition: ovsdb-data.h:126
static struct ovsrec_port * ovsrec_port_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:88
size_t n_rstp_statistics
Definition: vswitch-idl.h:1482
static void ovsrec_port_parse_rstp_status ( struct ovsdb_idl_row row_,
const struct ovsdb_datum datum 
)
static
16674 {
16675  struct ovsrec_port *row = ovsrec_port_cast(row_);
16676  size_t i;
16677 
16678  ovs_assert(inited);
16679  smap_init(&row->rstp_status);
16680  for (i = 0; i < datum->n; i++) {
16681  smap_add(&row->rstp_status,
16682  datum->keys[i].string,
16683  datum->values[i].string);
16684  }
16685 }
#define ovs_assert(CONDITION)
Definition: util.h:73
void smap_init(struct smap *smap)
Definition: smap.c:33
Definition: vswitch-idl.h:1436
char * string
Definition: ovsdb-data.h:33
struct smap_node * smap_add(struct smap *smap, const char *key, const char *value)
Definition: smap.c:50
struct smap rstp_status
Definition: vswitch-idl.h:1485
union ovsdb_atom * keys
Definition: ovsdb-data.h:127
union ovsdb_atom * values
Definition: ovsdb-data.h:128
static bool inited
Definition: vswitch-idl.c:18
unsigned int n
Definition: ovsdb-data.h:126
static struct ovsrec_port * ovsrec_port_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:88
static void ovsrec_port_parse_statistics ( struct ovsdb_idl_row row_,
const struct ovsdb_datum datum 
)
static
16689 {
16690  struct ovsrec_port *row = ovsrec_port_cast(row_);
16691  size_t i;
16692 
16693  ovs_assert(inited);
16694  row->key_statistics = NULL;
16695  row->value_statistics = NULL;
16696  row->n_statistics = 0;
16697  for (i = 0; i < datum->n; i++) {
16698  if (!row->n_statistics) {
16699  row->key_statistics = xmalloc(datum->n * sizeof *row->key_statistics);
16700  row->value_statistics = xmalloc(datum->n * sizeof *row->value_statistics);
16701  }
16702  row->key_statistics[row->n_statistics] = datum->keys[i].string;
16703  row->value_statistics[row->n_statistics] = datum->values[i].integer;
16704  row->n_statistics++;
16705  }
16706 }
int64_t integer
Definition: ovsdb-data.h:30
#define ovs_assert(CONDITION)
Definition: util.h:73
size_t n_statistics
Definition: vswitch-idl.h:1490
char ** key_statistics
Definition: vswitch-idl.h:1488
Definition: vswitch-idl.h:1436
char * string
Definition: ovsdb-data.h:33
union ovsdb_atom * keys
Definition: ovsdb-data.h:127
void * xmalloc(size_t size)
Definition: util.c:110
union ovsdb_atom * values
Definition: ovsdb-data.h:128
static bool inited
Definition: vswitch-idl.c:18
unsigned int n
Definition: ovsdb-data.h:126
static struct ovsrec_port * ovsrec_port_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:88
int64_t * value_statistics
Definition: vswitch-idl.h:1489
static void ovsrec_port_parse_status ( struct ovsdb_idl_row row_,
const struct ovsdb_datum datum 
)
static
16710 {
16711  struct ovsrec_port *row = ovsrec_port_cast(row_);
16712  size_t i;
16713 
16714  ovs_assert(inited);
16715  smap_init(&row->status);
16716  for (i = 0; i < datum->n; i++) {
16717  smap_add(&row->status,
16718  datum->keys[i].string,
16719  datum->values[i].string);
16720  }
16721 }
#define ovs_assert(CONDITION)
Definition: util.h:73
void smap_init(struct smap *smap)
Definition: smap.c:33
struct smap status
Definition: vswitch-idl.h:1493
Definition: vswitch-idl.h:1436
char * string
Definition: ovsdb-data.h:33
struct smap_node * smap_add(struct smap *smap, const char *key, const char *value)
Definition: smap.c:50
union ovsdb_atom * keys
Definition: ovsdb-data.h:127
union ovsdb_atom * values
Definition: ovsdb-data.h:128
static bool inited
Definition: vswitch-idl.c:18
unsigned int n
Definition: ovsdb-data.h:126
static struct ovsrec_port * ovsrec_port_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:88
static void ovsrec_port_parse_tag ( struct ovsdb_idl_row row_,
const struct ovsdb_datum datum 
)
static
16725 {
16726  struct ovsrec_port *row = ovsrec_port_cast(row_);
16727  size_t n = MIN(1, datum->n);
16728  size_t i;
16729 
16730  ovs_assert(inited);
16731  row->tag = NULL;
16732  row->n_tag = 0;
16733  for (i = 0; i < n; i++) {
16734  if (!row->n_tag) {
16735  row->tag = xmalloc(n * sizeof *row->tag);
16736  }
16737  row->tag[row->n_tag] = datum->keys[i].integer;
16738  row->n_tag++;
16739  }
16740 }
size_t n_tag
Definition: vswitch-idl.h:1497
int64_t integer
Definition: ovsdb-data.h:30
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: vswitch-idl.h:1436
union ovsdb_atom * keys
Definition: ovsdb-data.h:127
void * xmalloc(size_t size)
Definition: util.c:110
static bool inited
Definition: vswitch-idl.c:18
unsigned int n
Definition: ovsdb-data.h:126
int64_t * tag
Definition: vswitch-idl.h:1496
#define MIN(_a, _b)
Definition: Util.h:68
static struct ovsrec_port * ovsrec_port_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:88
static void ovsrec_port_parse_trunks ( struct ovsdb_idl_row row_,
const struct ovsdb_datum datum 
)
static
16744 {
16745  struct ovsrec_port *row = ovsrec_port_cast(row_);
16746  size_t n = MIN(4096, datum->n);
16747  size_t i;
16748 
16749  ovs_assert(inited);
16750  row->trunks = NULL;
16751  row->n_trunks = 0;
16752  for (i = 0; i < n; i++) {
16753  if (!row->n_trunks) {
16754  row->trunks = xmalloc(n * sizeof *row->trunks);
16755  }
16756  row->trunks[row->n_trunks] = datum->keys[i].integer;
16757  row->n_trunks++;
16758  }
16759 }
int64_t integer
Definition: ovsdb-data.h:30
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: vswitch-idl.h:1436
union ovsdb_atom * keys
Definition: ovsdb-data.h:127
void * xmalloc(size_t size)
Definition: util.c:110
static bool inited
Definition: vswitch-idl.c:18
int64_t * trunks
Definition: vswitch-idl.h:1500
size_t n_trunks
Definition: vswitch-idl.h:1501
unsigned int n
Definition: ovsdb-data.h:126
#define MIN(_a, _b)
Definition: Util.h:68
static struct ovsrec_port * ovsrec_port_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:88
static void ovsrec_port_parse_vlan_mode ( struct ovsdb_idl_row row_,
const struct ovsdb_datum datum 
)
static
16763 {
16764  struct ovsrec_port *row = ovsrec_port_cast(row_);
16765 
16766  ovs_assert(inited);
16767  if (datum->n >= 1) {
16768  row->vlan_mode = datum->keys[0].string;
16769  } else {
16770  row->vlan_mode = NULL;
16771  }
16772 }
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: vswitch-idl.h:1436
char * string
Definition: ovsdb-data.h:33
union ovsdb_atom * keys
Definition: ovsdb-data.h:127
static bool inited
Definition: vswitch-idl.c:18
unsigned int n
Definition: ovsdb-data.h:126
static struct ovsrec_port * ovsrec_port_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:88
char * vlan_mode
Definition: vswitch-idl.h:1504
void ovsrec_port_set_bond_active_slave ( const struct ovsrec_port row,
const char *  bond_active_slave 
)
18198 {
18199  struct ovsdb_datum datum;
18200  union ovsdb_atom key;
18201 
18202  ovs_assert(inited);
18203  if (bond_active_slave) {
18204  datum.n = 1;
18205  datum.keys = &key;
18206  key.string = CONST_CAST(char *, bond_active_slave);
18207  } else {
18208  datum.n = 0;
18209  datum.keys = NULL;
18210  }
18211  datum.values = NULL;
18213 }
Definition: ovsdb-data.h:125
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: vswitch-idl.h:1508
Definition: ovsdb-data.h:29
static bool inited
Definition: vswitch-idl.c:18
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:1437
struct ovsdb_idl_column ovsrec_port_columns[OVSREC_PORT_N_COLUMNS]
Definition: vswitch-idl.c:18695
#define CONST_CAST(TYPE, POINTER)
Definition: util.h:88
static struct aes128 key
Definition: uuid.c:34
void ovsdb_idl_txn_write_clone(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column, const struct ovsdb_datum *datum)
Definition: ovsdb-idl.c:2131
void ovsrec_port_set_bond_downdelay ( const struct ovsrec_port row,
int64_t  bond_downdelay 
)
18221 {
18222  struct ovsdb_datum datum;
18223  union ovsdb_atom key;
18224 
18225  ovs_assert(inited);
18226  datum.n = 1;
18227  datum.keys = &key;
18228  key.integer = bond_downdelay;
18229  datum.values = NULL;
18231 }
Definition: ovsdb-data.h:125
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: vswitch-idl.h:1509
Definition: ovsdb-data.h:29
static bool inited
Definition: vswitch-idl.c:18
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:1437
struct ovsdb_idl_column ovsrec_port_columns[OVSREC_PORT_N_COLUMNS]
Definition: vswitch-idl.c:18695
static struct aes128 key
Definition: uuid.c:34
void ovsdb_idl_txn_write_clone(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column, const struct ovsdb_datum *datum)
Definition: ovsdb-idl.c:2131
void ovsrec_port_set_bond_fake_iface ( const struct ovsrec_port row,
bool  bond_fake_iface 
)
18239 {
18240  struct ovsdb_datum datum;
18241  union ovsdb_atom key;
18242 
18243  ovs_assert(inited);
18244  datum.n = 1;
18245  datum.keys = &key;
18246  key.boolean = bond_fake_iface;
18247  datum.values = NULL;
18249 }
Definition: ovsdb-data.h:125
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: ovsdb-data.h:29
static bool inited
Definition: vswitch-idl.c:18
Definition: vswitch-idl.h:1510
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:1437
struct ovsdb_idl_column ovsrec_port_columns[OVSREC_PORT_N_COLUMNS]
Definition: vswitch-idl.c:18695
static struct aes128 key
Definition: uuid.c:34
void ovsdb_idl_txn_write_clone(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column, const struct ovsdb_datum *datum)
Definition: ovsdb-idl.c:2131
void ovsrec_port_set_bond_mode ( const struct ovsrec_port row,
const char *  bond_mode 
)
18262 {
18263  struct ovsdb_datum datum;
18264  union ovsdb_atom key;
18265 
18266  ovs_assert(inited);
18267  if (bond_mode) {
18268  datum.n = 1;
18269  datum.keys = &key;
18270  key.string = CONST_CAST(char *, bond_mode);
18271  } else {
18272  datum.n = 0;
18273  datum.keys = NULL;
18274  }
18275  datum.values = NULL;
18277 }
Definition: ovsdb-data.h:125
#define ovs_assert(CONDITION)
Definition: util.h:73
bond_mode
Definition: bond.h:32
Definition: ovsdb-data.h:29
Definition: vswitch-idl.h:1511
static bool inited
Definition: vswitch-idl.c:18
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:1437
struct ovsdb_idl_column ovsrec_port_columns[OVSREC_PORT_N_COLUMNS]
Definition: vswitch-idl.c:18695
#define CONST_CAST(TYPE, POINTER)
Definition: util.h:88
static struct aes128 key
Definition: uuid.c:34
void ovsdb_idl_txn_write_clone(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column, const struct ovsdb_datum *datum)
Definition: ovsdb-idl.c:2131
void ovsrec_port_set_bond_updelay ( const struct ovsrec_port row,
int64_t  bond_updelay 
)
18285 {
18286  struct ovsdb_datum datum;
18287  union ovsdb_atom key;
18288 
18289  ovs_assert(inited);
18290  datum.n = 1;
18291  datum.keys = &key;
18292  key.integer = bond_updelay;
18293  datum.values = NULL;
18295 }
Definition: ovsdb-data.h:125
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: ovsdb-data.h:29
static bool inited
Definition: vswitch-idl.c:18
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:1437
struct ovsdb_idl_column ovsrec_port_columns[OVSREC_PORT_N_COLUMNS]
Definition: vswitch-idl.c:18695
Definition: vswitch-idl.h:1512
static struct aes128 key
Definition: uuid.c:34
void ovsdb_idl_txn_write_clone(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column, const struct ovsdb_datum *datum)
Definition: ovsdb-idl.c:2131
void ovsrec_port_set_external_ids ( const struct ovsrec_port row,
const struct smap external_ids 
)
18303 {
18304  struct ovsdb_datum datum;
18305 
18306  ovs_assert(inited);
18307  if (external_ids) {
18308  struct smap_node *node;
18309  size_t i;
18310 
18311  datum.n = smap_count(external_ids);
18312  datum.keys = xmalloc(datum.n * sizeof *datum.keys);
18313  datum.values = xmalloc(datum.n * sizeof *datum.values);
18314 
18315  i = 0;
18316  SMAP_FOR_EACH (node, external_ids) {
18317  datum.keys[i].string = xstrdup(node->key);
18318  datum.values[i].string = xstrdup(node->value);
18319  i++;
18320  }
18322  } else {
18323  ovsdb_datum_init_empty(&datum);
18324  }
18327  &datum);
18328 }
char * value
Definition: smap.h:31
Definition: ovsdb-data.h:125
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: ovsdb-types.h:33
size_t ovsdb_datum_sort_unique(struct ovsdb_datum *datum, enum ovsdb_atomic_type key_type, enum ovsdb_atomic_type value_type)
Definition: ovsdb-data.c:1089
#define SMAP_FOR_EACH(SMAP_NODE, SMAP)
Definition: smap.h:36
void * xmalloc(size_t size)
Definition: util.c:110
char * xstrdup(const char *s)
Definition: util.c:149
static bool inited
Definition: vswitch-idl.c:18
struct hmap_node node
Definition: smap.h:29
Definition: smap.h:28
Definition: vswitch-idl.h:1513
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:1437
size_t smap_count(const struct smap *smap)
Definition: smap.c:238
struct ovsdb_idl_column ovsrec_port_columns[OVSREC_PORT_N_COLUMNS]
Definition: vswitch-idl.c:18695
void ovsdb_datum_init_empty(struct ovsdb_datum *datum)
Definition: ovsdb-data.c:835
void ovsdb_idl_txn_write(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column, struct ovsdb_datum *datum)
Definition: ovsdb-idl.c:2123
char * key
Definition: smap.h:30
void ovsrec_port_set_fake_bridge ( const struct ovsrec_port row,
bool  fake_bridge 
)
18337 {
18338  struct ovsdb_datum datum;
18339  union ovsdb_atom key;
18340 
18341  ovs_assert(inited);
18342  datum.n = 1;
18343  datum.keys = &key;
18344  key.boolean = fake_bridge;
18345  datum.values = NULL;
18347 }
Definition: ovsdb-data.h:125
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: ovsdb-data.h:29
static bool inited
Definition: vswitch-idl.c:18
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:1437
struct ovsdb_idl_column ovsrec_port_columns[OVSREC_PORT_N_COLUMNS]
Definition: vswitch-idl.c:18695
Definition: vswitch-idl.h:1514
static struct aes128 key
Definition: uuid.c:34
void ovsdb_idl_txn_write_clone(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column, const struct ovsdb_datum *datum)
Definition: ovsdb-idl.c:2131
void ovsrec_port_set_interfaces ( const struct ovsrec_port row,
struct ovsrec_interface **  interfaces,
size_t  n_interfaces 
)
18355 {
18356  struct ovsdb_datum datum;
18357  size_t i;
18358 
18359  ovs_assert(inited);
18360  datum.n = n_interfaces;
18361  datum.keys = n_interfaces ? xmalloc(n_interfaces * sizeof *datum.keys) : NULL;
18362  datum.values = NULL;
18363  for (i = 0; i < n_interfaces; i++) {
18364  datum.keys[i].uuid = interfaces[i]->header_.uuid;
18365  }
18368 }
Definition: ovsdb-data.h:125
#define ovs_assert(CONDITION)
Definition: util.h:73
size_t ovsdb_datum_sort_unique(struct ovsdb_datum *datum, enum ovsdb_atomic_type key_type, enum ovsdb_atomic_type value_type)
Definition: ovsdb-data.c:1089
Definition: ovsdb-types.h:34
void * xmalloc(size_t size)
Definition: util.c:110
static bool inited
Definition: vswitch-idl.c:18
Definition: ovsdb-types.h:29
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:1437
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:695
struct ovsdb_idl_column ovsrec_port_columns[OVSREC_PORT_N_COLUMNS]
Definition: vswitch-idl.c:18695
void ovsdb_idl_txn_write(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column, struct ovsdb_datum *datum)
Definition: ovsdb-idl.c:2123
struct uuid uuid
Definition: ovsdb-idl-provider.h:28
Definition: vswitch-idl.h:1515
void ovsrec_port_set_lacp ( const struct ovsrec_port row,
const char *  lacp 
)
18381 {
18382  struct ovsdb_datum datum;
18383  union ovsdb_atom key;
18384 
18385  ovs_assert(inited);
18386  if (lacp) {
18387  datum.n = 1;
18388  datum.keys = &key;
18389  key.string = CONST_CAST(char *, lacp);
18390  } else {
18391  datum.n = 0;
18392  datum.keys = NULL;
18393  }
18394  datum.values = NULL;
18396 }
Definition: ovsdb-data.h:125
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: lacp.c:94
Definition: ovsdb-data.h:29
Definition: vswitch-idl.h:1516
static bool inited
Definition: vswitch-idl.c:18
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:1437
struct ovsdb_idl_column ovsrec_port_columns[OVSREC_PORT_N_COLUMNS]
Definition: vswitch-idl.c:18695
#define CONST_CAST(TYPE, POINTER)
Definition: util.h:88
static struct aes128 key
Definition: uuid.c:34
void ovsdb_idl_txn_write_clone(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column, const struct ovsdb_datum *datum)
Definition: ovsdb-idl.c:2131
void ovsrec_port_set_mac ( const struct ovsrec_port row,
const char *  mac 
)
18407 {
18408  struct ovsdb_datum datum;
18409  union ovsdb_atom key;
18410 
18411  ovs_assert(inited);
18412  if (mac) {
18413  datum.n = 1;
18414  datum.keys = &key;
18415  key.string = CONST_CAST(char *, mac);
18416  } else {
18417  datum.n = 0;
18418  datum.keys = NULL;
18419  }
18420  datum.values = NULL;
18422 }
Definition: ovsdb-data.h:125
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: ovsdb-data.h:29
static bool inited
Definition: vswitch-idl.c:18
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:1437
struct ovsdb_idl_column ovsrec_port_columns[OVSREC_PORT_N_COLUMNS]
Definition: vswitch-idl.c:18695
Definition: vswitch-idl.h:1517
#define CONST_CAST(TYPE, POINTER)
Definition: util.h:88
static struct aes128 key
Definition: uuid.c:34
void ovsdb_idl_txn_write_clone(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column, const struct ovsdb_datum *datum)
Definition: ovsdb-idl.c:2131
void ovsrec_port_set_name ( const struct ovsrec_port row,
const char *  name 
)
18430 {
18431  struct ovsdb_datum datum;
18432  union ovsdb_atom key;
18433 
18434  ovs_assert(inited);
18435  datum.n = 1;
18436  datum.keys = &key;
18437  key.string = CONST_CAST(char *, name);
18438  datum.values = NULL;
18440 }
Definition: ovsdb-data.h:125
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: ovsdb-data.h:29
static bool inited
Definition: vswitch-idl.c:18
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:1437
struct ovsdb_idl_column ovsrec_port_columns[OVSREC_PORT_N_COLUMNS]
Definition: vswitch-idl.c:18695
Definition: vswitch-idl.h:1518
string name
Definition: setup.py:30
#define CONST_CAST(TYPE, POINTER)
Definition: util.h:88
static struct aes128 key
Definition: uuid.c:34
void ovsdb_idl_txn_write_clone(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column, const struct ovsdb_datum *datum)
Definition: ovsdb-idl.c:2131
void ovsrec_port_set_other_config ( const struct ovsrec_port row,
const struct smap other_config 
)
18448 {
18449  struct ovsdb_datum datum;
18450 
18451  ovs_assert(inited);
18452  if (other_config) {
18453  struct smap_node *node;
18454  size_t i;
18455 
18456  datum.n = smap_count(other_config);
18457  datum.keys = xmalloc(datum.n * sizeof *datum.keys);
18458  datum.values = xmalloc(datum.n * sizeof *datum.values);
18459 
18460  i = 0;
18461  SMAP_FOR_EACH (node, other_config) {
18462  datum.keys[i].string = xstrdup(node->key);
18463  datum.values[i].string = xstrdup(node->value);
18464  i++;
18465  }
18467  } else {
18468  ovsdb_datum_init_empty(&datum);
18469  }
18472  &datum);
18473 }
Definition: vswitch-idl.h:1519
char * value
Definition: smap.h:31
Definition: ovsdb-data.h:125
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: ovsdb-types.h:33
size_t ovsdb_datum_sort_unique(struct ovsdb_datum *datum, enum ovsdb_atomic_type key_type, enum ovsdb_atomic_type value_type)
Definition: ovsdb-data.c:1089
#define SMAP_FOR_EACH(SMAP_NODE, SMAP)
Definition: smap.h:36
void * xmalloc(size_t size)
Definition: util.c:110
char * xstrdup(const char *s)
Definition: util.c:149
static bool inited
Definition: vswitch-idl.c:18
struct hmap_node node
Definition: smap.h:29
Definition: smap.h:28
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:1437
size_t smap_count(const struct smap *smap)
Definition: smap.c:238
struct ovsdb_idl_column ovsrec_port_columns[OVSREC_PORT_N_COLUMNS]
Definition: vswitch-idl.c:18695
void ovsdb_datum_init_empty(struct ovsdb_datum *datum)
Definition: ovsdb-data.c:835
void ovsdb_idl_txn_write(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column, struct ovsdb_datum *datum)
Definition: ovsdb-idl.c:2123
char * key
Definition: smap.h:30
void ovsrec_port_set_qos ( const struct ovsrec_port row,
const struct ovsrec_qos qos 
)
18485 {
18486  struct ovsdb_datum datum;
18487  union ovsdb_atom key;
18488 
18489  ovs_assert(inited);
18490  if (qos) {
18491  datum.n = 1;
18492  datum.keys = &key;
18493  key.uuid = qos->header_.uuid;
18494  } else {
18495  datum.n = 0;
18496  datum.keys = NULL;
18497  }
18498  datum.values = NULL;
18500 }
Definition: ovsdb-data.h:125
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: ovsdb-data.h:29
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:1636
static bool inited
Definition: vswitch-idl.c:18
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:1437
Definition: vswitch-idl.h:1520
struct ovsdb_idl_column ovsrec_port_columns[OVSREC_PORT_N_COLUMNS]
Definition: vswitch-idl.c:18695
static struct aes128 key
Definition: uuid.c:34
struct uuid uuid
Definition: ovsdb-idl-provider.h:28
void ovsdb_idl_txn_write_clone(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column, const struct ovsdb_datum *datum)
Definition: ovsdb-idl.c:2131
void ovsrec_port_set_rstp_statistics ( const struct ovsrec_port row,
const char **  key_rstp_statistics,
const int64_t value_rstp_statistics,
size_t  n_rstp_statistics 
)
18509 {
18510  struct ovsdb_datum datum;
18511  size_t i;
18512 
18513  ovs_assert(inited);
18514  datum.n = n_rstp_statistics;
18515  datum.keys = n_rstp_statistics ? xmalloc(n_rstp_statistics * sizeof *datum.keys) : NULL;
18516  datum.values = xmalloc(n_rstp_statistics * sizeof *datum.values);
18517  for (i = 0; i < n_rstp_statistics; i++) {
18518  datum.keys[i].string = xstrdup(key_rstp_statistics[i]);
18519  datum.values[i].integer = value_rstp_statistics[i];
18520  }
18523 }
Definition: ovsdb-data.h:125
Definition: vswitch-idl.h:1521
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: ovsdb-types.h:33
size_t ovsdb_datum_sort_unique(struct ovsdb_datum *datum, enum ovsdb_atomic_type key_type, enum ovsdb_atomic_type value_type)
Definition: ovsdb-data.c:1089
Definition: ovsdb-types.h:30
void * xmalloc(size_t size)
Definition: util.c:110
char * xstrdup(const char *s)
Definition: util.c:149
static bool inited
Definition: vswitch-idl.c:18
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:1437
struct ovsdb_idl_column ovsrec_port_columns[OVSREC_PORT_N_COLUMNS]
Definition: vswitch-idl.c:18695
void ovsdb_idl_txn_write(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column, struct ovsdb_datum *datum)
Definition: ovsdb-idl.c:2123
void ovsrec_port_set_rstp_status ( const struct ovsrec_port row,
const struct smap rstp_status 
)
18531 {
18532  struct ovsdb_datum datum;
18533 
18534  ovs_assert(inited);
18535  if (rstp_status) {
18536  struct smap_node *node;
18537  size_t i;
18538 
18539  datum.n = smap_count(rstp_status);
18540  datum.keys = xmalloc(datum.n * sizeof *datum.keys);
18541  datum.values = xmalloc(datum.n * sizeof *datum.values);
18542 
18543  i = 0;
18544  SMAP_FOR_EACH (node, rstp_status) {
18545  datum.keys[i].string = xstrdup(node->key);
18546  datum.values[i].string = xstrdup(node->value);
18547  i++;
18548  }
18550  } else {
18551  ovsdb_datum_init_empty(&datum);
18552  }
18555  &datum);
18556 }
char * value
Definition: smap.h:31
Definition: ovsdb-data.h:125
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: vswitch-idl.h:1522
Definition: ovsdb-types.h:33
size_t ovsdb_datum_sort_unique(struct ovsdb_datum *datum, enum ovsdb_atomic_type key_type, enum ovsdb_atomic_type value_type)
Definition: ovsdb-data.c:1089
#define SMAP_FOR_EACH(SMAP_NODE, SMAP)
Definition: smap.h:36
void * xmalloc(size_t size)
Definition: util.c:110
char * xstrdup(const char *s)
Definition: util.c:149
static bool inited
Definition: vswitch-idl.c:18
struct hmap_node node
Definition: smap.h:29
Definition: smap.h:28
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:1437
size_t smap_count(const struct smap *smap)
Definition: smap.c:238
struct ovsdb_idl_column ovsrec_port_columns[OVSREC_PORT_N_COLUMNS]
Definition: vswitch-idl.c:18695
void ovsdb_datum_init_empty(struct ovsdb_datum *datum)
Definition: ovsdb-data.c:835
void ovsdb_idl_txn_write(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column, struct ovsdb_datum *datum)
Definition: ovsdb-idl.c:2123
char * key
Definition: smap.h:30
void ovsrec_port_set_statistics ( const struct ovsrec_port row,
const char **  key_statistics,
const int64_t value_statistics,
size_t  n_statistics 
)
18566 {
18567  struct ovsdb_datum datum;
18568  size_t i;
18569 
18570  ovs_assert(inited);
18571  datum.n = n_statistics;
18572  datum.keys = n_statistics ? xmalloc(n_statistics * sizeof *datum.keys) : NULL;
18573  datum.values = xmalloc(n_statistics * sizeof *datum.values);
18574  for (i = 0; i < n_statistics; i++) {
18575  datum.keys[i].string = xstrdup(key_statistics[i]);
18576  datum.values[i].integer = value_statistics[i];
18577  }
18580 }
Definition: ovsdb-data.h:125
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: ovsdb-types.h:33
size_t ovsdb_datum_sort_unique(struct ovsdb_datum *datum, enum ovsdb_atomic_type key_type, enum ovsdb_atomic_type value_type)
Definition: ovsdb-data.c:1089
Definition: ovsdb-types.h:30
void * xmalloc(size_t size)
Definition: util.c:110
char * xstrdup(const char *s)
Definition: util.c:149
static bool inited
Definition: vswitch-idl.c:18
Definition: vswitch-idl.h:1523
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:1437
struct ovsdb_idl_column ovsrec_port_columns[OVSREC_PORT_N_COLUMNS]
Definition: vswitch-idl.c:18695
void ovsdb_idl_txn_write(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column, struct ovsdb_datum *datum)
Definition: ovsdb-idl.c:2123
void ovsrec_port_set_status ( const struct ovsrec_port row,
const struct smap status 
)
18588 {
18589  struct ovsdb_datum datum;
18590 
18591  ovs_assert(inited);
18592  if (status) {
18593  struct smap_node *node;
18594  size_t i;
18595 
18596  datum.n = smap_count(status);
18597  datum.keys = xmalloc(datum.n * sizeof *datum.keys);
18598  datum.values = xmalloc(datum.n * sizeof *datum.values);
18599 
18600  i = 0;
18601  SMAP_FOR_EACH (node, status) {
18602  datum.keys[i].string = xstrdup(node->key);
18603  datum.values[i].string = xstrdup(node->value);
18604  i++;
18605  }
18607  } else {
18608  ovsdb_datum_init_empty(&datum);
18609  }
18612  &datum);
18613 }
char * value
Definition: smap.h:31
Definition: ovsdb-data.h:125
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: ovsdb-types.h:33
size_t ovsdb_datum_sort_unique(struct ovsdb_datum *datum, enum ovsdb_atomic_type key_type, enum ovsdb_atomic_type value_type)
Definition: ovsdb-data.c:1089
#define SMAP_FOR_EACH(SMAP_NODE, SMAP)
Definition: smap.h:36
void * xmalloc(size_t size)
Definition: util.c:110
char * xstrdup(const char *s)
Definition: util.c:149
static bool inited
Definition: vswitch-idl.c:18
struct hmap_node node
Definition: smap.h:29
Definition: smap.h:28
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:1437
size_t smap_count(const struct smap *smap)
Definition: smap.c:238
struct ovsdb_idl_column ovsrec_port_columns[OVSREC_PORT_N_COLUMNS]
Definition: vswitch-idl.c:18695
void ovsdb_datum_init_empty(struct ovsdb_datum *datum)
Definition: ovsdb-data.c:835
Definition: vswitch-idl.h:1524
void ovsdb_idl_txn_write(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column, struct ovsdb_datum *datum)
Definition: ovsdb-idl.c:2123
char * key
Definition: smap.h:30
void ovsrec_port_set_tag ( const struct ovsrec_port row,
const int64_t tag,
size_t  n_tag 
)
18627 {
18628  struct ovsdb_datum datum;
18629  union ovsdb_atom key;
18630 
18631  ovs_assert(inited);
18632  if (n_tag) {
18633  datum.n = 1;
18634  datum.keys = &key;
18635  key.integer = *tag;
18636  } else {
18637  datum.n = 0;
18638  datum.keys = NULL;
18639  }
18640  datum.values = NULL;
18642 }
Definition: ovsdb-data.h:125
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: ovsdb-data.h:29
static bool inited
Definition: vswitch-idl.c:18
Definition: vswitch-idl.h:1525
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:1437
def tag()
Definition: ovs-dev.py:165
struct ovsdb_idl_column ovsrec_port_columns[OVSREC_PORT_N_COLUMNS]
Definition: vswitch-idl.c:18695
static struct aes128 key
Definition: uuid.c:34
void ovsdb_idl_txn_write_clone(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column, const struct ovsdb_datum *datum)
Definition: ovsdb-idl.c:2131
void ovsrec_port_set_trunks ( const struct ovsrec_port row,
const int64_t trunks,
size_t  n_trunks 
)
18652 {
18653  struct ovsdb_datum datum;
18654  size_t i;
18655 
18656  ovs_assert(inited);
18657  datum.n = n_trunks;
18658  datum.keys = n_trunks ? xmalloc(n_trunks * sizeof *datum.keys) : NULL;
18659  datum.values = NULL;
18660  for (i = 0; i < n_trunks; i++) {
18661  datum.keys[i].integer = trunks[i];
18662  }
18665 }
Definition: ovsdb-data.h:125
#define ovs_assert(CONDITION)
Definition: util.h:73
size_t ovsdb_datum_sort_unique(struct ovsdb_datum *datum, enum ovsdb_atomic_type key_type, enum ovsdb_atomic_type value_type)
Definition: ovsdb-data.c:1089
Definition: ovsdb-types.h:30
void * xmalloc(size_t size)
Definition: util.c:110
Definition: vswitch-idl.h:1526
static bool inited
Definition: vswitch-idl.c:18
Definition: ovsdb-types.h:29
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:1437
struct ovsdb_idl_column ovsrec_port_columns[OVSREC_PORT_N_COLUMNS]
Definition: vswitch-idl.c:18695
void ovsdb_idl_txn_write(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column, struct ovsdb_datum *datum)
Definition: ovsdb-idl.c:2123
void ovsrec_port_set_vlan_mode ( const struct ovsrec_port row,
const char *  vlan_mode 
)
18678 {
18679  struct ovsdb_datum datum;
18680  union ovsdb_atom key;
18681 
18682  ovs_assert(inited);
18683  if (vlan_mode) {
18684  datum.n = 1;
18685  datum.keys = &key;
18686  key.string = CONST_CAST(char *, vlan_mode);
18687  } else {
18688  datum.n = 0;
18689  datum.keys = NULL;
18690  }
18691  datum.values = NULL;
18693 }
Definition: ovsdb-data.h:125
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: ovsdb-data.h:29
static bool inited
Definition: vswitch-idl.c:18
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:1437
struct ovsdb_idl_column ovsrec_port_columns[OVSREC_PORT_N_COLUMNS]
Definition: vswitch-idl.c:18695
#define CONST_CAST(TYPE, POINTER)
Definition: util.h:88
static struct aes128 key
Definition: uuid.c:34
void ovsdb_idl_txn_write_clone(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column, const struct ovsdb_datum *datum)
Definition: ovsdb-idl.c:2131
Definition: vswitch-idl.h:1527
static void ovsrec_port_unparse_bond_active_slave ( struct ovsdb_idl_row *row  OVS_UNUSED)
static
16776 {
16777  /* Nothing to do. */
16778 }
static void ovsrec_port_unparse_bond_downdelay ( struct ovsdb_idl_row *row  OVS_UNUSED)
static
16782 {
16783  /* Nothing to do. */
16784 }
static void ovsrec_port_unparse_bond_fake_iface ( struct ovsdb_idl_row *row  OVS_UNUSED)
static
16788 {
16789  /* Nothing to do. */
16790 }
static void ovsrec_port_unparse_bond_mode ( struct ovsdb_idl_row *row  OVS_UNUSED)
static
16794 {
16795  /* Nothing to do. */
16796 }
static void ovsrec_port_unparse_bond_updelay ( struct ovsdb_idl_row *row  OVS_UNUSED)
static
16800 {
16801  /* Nothing to do. */
16802 }
static void ovsrec_port_unparse_external_ids ( struct ovsdb_idl_row row_)
static
16806 {
16807  struct ovsrec_port *row = ovsrec_port_cast(row_);
16808 
16809  ovs_assert(inited);
16810  smap_destroy(&row->external_ids);
16811 }
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: vswitch-idl.h:1436
struct smap external_ids
Definition: vswitch-idl.h:1455
static bool inited
Definition: vswitch-idl.c:18
void smap_destroy(struct smap *smap)
Definition: smap.c:39
static struct ovsrec_port * ovsrec_port_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:88
static void ovsrec_port_unparse_fake_bridge ( struct ovsdb_idl_row *row  OVS_UNUSED)
static
16815 {
16816  /* Nothing to do. */
16817 }
static void ovsrec_port_unparse_interfaces ( struct ovsdb_idl_row row_)
static
16821 {
16822  struct ovsrec_port *row = ovsrec_port_cast(row_);
16823 
16824  ovs_assert(inited);
16825  free(row->interfaces);
16826 }
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: vswitch-idl.h:1436
static bool inited
Definition: vswitch-idl.c:18
static struct ovsrec_port * ovsrec_port_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:88
struct ovsrec_interface ** interfaces
Definition: vswitch-idl.h:1461
static void ovsrec_port_unparse_lacp ( struct ovsdb_idl_row *row  OVS_UNUSED)
static
16830 {
16831  /* Nothing to do. */
16832 }
static void ovsrec_port_unparse_mac ( struct ovsdb_idl_row *row  OVS_UNUSED)
static
16836 {
16837  /* Nothing to do. */
16838 }
static void ovsrec_port_unparse_name ( struct ovsdb_idl_row *row  OVS_UNUSED)
static
16842 {
16843  /* Nothing to do. */
16844 }
static void ovsrec_port_unparse_other_config ( struct ovsdb_idl_row row_)
static
16848 {
16849  struct ovsrec_port *row = ovsrec_port_cast(row_);
16850 
16851  ovs_assert(inited);
16852  smap_destroy(&row->other_config);
16853 }
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: vswitch-idl.h:1436
static bool inited
Definition: vswitch-idl.c:18
struct smap other_config
Definition: vswitch-idl.h:1474
void smap_destroy(struct smap *smap)
Definition: smap.c:39
static struct ovsrec_port * ovsrec_port_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:88
static void ovsrec_port_unparse_qos ( struct ovsdb_idl_row *row  OVS_UNUSED)
static
16857 {
16858  /* Nothing to do. */
16859 }
static void ovsrec_port_unparse_rstp_statistics ( struct ovsdb_idl_row row_)
static
16863 {
16864  struct ovsrec_port *row = ovsrec_port_cast(row_);
16865 
16866  ovs_assert(inited);
16867  free(row->key_rstp_statistics);
16868  free(row->value_rstp_statistics);
16869 }
char ** key_rstp_statistics
Definition: vswitch-idl.h:1480
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: vswitch-idl.h:1436
int64_t * value_rstp_statistics
Definition: vswitch-idl.h:1481
static bool inited
Definition: vswitch-idl.c:18
static struct ovsrec_port * ovsrec_port_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:88
static void ovsrec_port_unparse_rstp_status ( struct ovsdb_idl_row row_)
static
16873 {
16874  struct ovsrec_port *row = ovsrec_port_cast(row_);
16875 
16876  ovs_assert(inited);
16877  smap_destroy(&row->rstp_status);
16878 }
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: vswitch-idl.h:1436
struct smap rstp_status
Definition: vswitch-idl.h:1485
static bool inited
Definition: vswitch-idl.c:18
void smap_destroy(struct smap *smap)
Definition: smap.c:39
static struct ovsrec_port * ovsrec_port_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:88
static void ovsrec_port_unparse_statistics ( struct ovsdb_idl_row row_)
static
16882 {
16883  struct ovsrec_port *row = ovsrec_port_cast(row_);
16884 
16885  ovs_assert(inited);
16886  free(row->key_statistics);
16887  free(row->value_statistics);
16888 }
#define ovs_assert(CONDITION)
Definition: util.h:73
char ** key_statistics
Definition: vswitch-idl.h:1488
Definition: vswitch-idl.h:1436
static bool inited
Definition: vswitch-idl.c:18
static struct ovsrec_port * ovsrec_port_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:88
int64_t * value_statistics
Definition: vswitch-idl.h:1489
static void ovsrec_port_unparse_status ( struct ovsdb_idl_row row_)
static
16892 {
16893  struct ovsrec_port *row = ovsrec_port_cast(row_);
16894 
16895  ovs_assert(inited);
16896  smap_destroy(&row->status);
16897 }
#define ovs_assert(CONDITION)
Definition: util.h:73
struct smap status
Definition: vswitch-idl.h:1493
Definition: vswitch-idl.h:1436
static bool inited
Definition: vswitch-idl.c:18
void smap_destroy(struct smap *smap)
Definition: smap.c:39
static struct ovsrec_port * ovsrec_port_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:88
static void ovsrec_port_unparse_tag ( struct ovsdb_idl_row row_)
static
16901 {
16902  struct ovsrec_port *row = ovsrec_port_cast(row_);
16903 
16904  ovs_assert(inited);
16905  free(row->tag);
16906 }
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: vswitch-idl.h:1436
static bool inited
Definition: vswitch-idl.c:18
int64_t * tag
Definition: vswitch-idl.h:1496
static struct ovsrec_port * ovsrec_port_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:88
static void ovsrec_port_unparse_trunks ( struct ovsdb_idl_row row_)
static
16910 {
16911  struct ovsrec_port *row = ovsrec_port_cast(row_);
16912 
16913  ovs_assert(inited);
16914  free(row->trunks);
16915 }
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: vswitch-idl.h:1436
static bool inited
Definition: vswitch-idl.c:18
int64_t * trunks
Definition: vswitch-idl.h:1500
static struct ovsrec_port * ovsrec_port_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:88
static void ovsrec_port_unparse_vlan_mode ( struct ovsdb_idl_row *row  OVS_UNUSED)
static
16919 {
16920  /* Nothing to do. */
16921 }
void ovsrec_port_verify_bond_active_slave ( const struct ovsrec_port row)
17018 {
17019  ovs_assert(inited);
17021 }
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: vswitch-idl.h:1508
static bool inited
Definition: vswitch-idl.c:18
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:1437
struct ovsdb_idl_column ovsrec_port_columns[OVSREC_PORT_N_COLUMNS]
Definition: vswitch-idl.c:18695
void ovsdb_idl_txn_verify(const struct ovsdb_idl_row *, const struct ovsdb_idl_column *)
Definition: ovsdb-idl.c:2168
void ovsrec_port_verify_bond_downdelay ( const struct ovsrec_port row)
17050 {
17051  ovs_assert(inited);
17053 }
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: vswitch-idl.h:1509
static bool inited
Definition: vswitch-idl.c:18
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:1437
struct ovsdb_idl_column ovsrec_port_columns[OVSREC_PORT_N_COLUMNS]
Definition: vswitch-idl.c:18695
void ovsdb_idl_txn_verify(const struct ovsdb_idl_row *, const struct ovsdb_idl_column *)
Definition: ovsdb-idl.c:2168
void ovsrec_port_verify_bond_fake_iface ( const struct ovsrec_port row)
17082 {
17083  ovs_assert(inited);
17085 }
#define ovs_assert(CONDITION)
Definition: util.h:73
static bool inited
Definition: vswitch-idl.c:18
Definition: vswitch-idl.h:1510
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:1437
struct ovsdb_idl_column ovsrec_port_columns[OVSREC_PORT_N_COLUMNS]
Definition: vswitch-idl.c:18695
void ovsdb_idl_txn_verify(const struct ovsdb_idl_row *, const struct ovsdb_idl_column *)
Definition: ovsdb-idl.c:2168
void ovsrec_port_verify_bond_mode ( const struct ovsrec_port row)
17114 {
17115  ovs_assert(inited);
17117 }
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: vswitch-idl.h:1511
static bool inited
Definition: vswitch-idl.c:18
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:1437
struct ovsdb_idl_column ovsrec_port_columns[OVSREC_PORT_N_COLUMNS]
Definition: vswitch-idl.c:18695
void ovsdb_idl_txn_verify(const struct ovsdb_idl_row *, const struct ovsdb_idl_column *)
Definition: ovsdb-idl.c:2168
void ovsrec_port_verify_bond_updelay ( const struct ovsrec_port row)
17146 {
17147  ovs_assert(inited);
17149 }
#define ovs_assert(CONDITION)
Definition: util.h:73
static bool inited
Definition: vswitch-idl.c:18
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:1437
struct ovsdb_idl_column ovsrec_port_columns[OVSREC_PORT_N_COLUMNS]
Definition: vswitch-idl.c:18695
void ovsdb_idl_txn_verify(const struct ovsdb_idl_row *, const struct ovsdb_idl_column *)
Definition: ovsdb-idl.c:2168
Definition: vswitch-idl.h:1512
void ovsrec_port_verify_external_ids ( const struct ovsrec_port row)
17178 {
17179  ovs_assert(inited);
17181 }
#define ovs_assert(CONDITION)
Definition: util.h:73
static bool inited
Definition: vswitch-idl.c:18
Definition: vswitch-idl.h:1513
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:1437
struct ovsdb_idl_column ovsrec_port_columns[OVSREC_PORT_N_COLUMNS]
Definition: vswitch-idl.c:18695
void ovsdb_idl_txn_verify(const struct ovsdb_idl_row *, const struct ovsdb_idl_column *)
Definition: ovsdb-idl.c:2168
void ovsrec_port_verify_fake_bridge ( const struct ovsrec_port row)
17210 {
17211  ovs_assert(inited);
17213 }
#define ovs_assert(CONDITION)
Definition: util.h:73
static bool inited
Definition: vswitch-idl.c:18
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:1437
struct ovsdb_idl_column ovsrec_port_columns[OVSREC_PORT_N_COLUMNS]
Definition: vswitch-idl.c:18695
void ovsdb_idl_txn_verify(const struct ovsdb_idl_row *, const struct ovsdb_idl_column *)
Definition: ovsdb-idl.c:2168
Definition: vswitch-idl.h:1514
void ovsrec_port_verify_interfaces ( const struct ovsrec_port row)
17242 {
17243  ovs_assert(inited);
17245 }
#define ovs_assert(CONDITION)
Definition: util.h:73
static bool inited
Definition: vswitch-idl.c:18
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:1437
struct ovsdb_idl_column ovsrec_port_columns[OVSREC_PORT_N_COLUMNS]
Definition: vswitch-idl.c:18695
void ovsdb_idl_txn_verify(const struct ovsdb_idl_row *, const struct ovsdb_idl_column *)
Definition: ovsdb-idl.c:2168
Definition: vswitch-idl.h:1515
void ovsrec_port_verify_lacp ( const struct ovsrec_port row)
17274 {
17275  ovs_assert(inited);
17277 }
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: vswitch-idl.h:1516
static bool inited
Definition: vswitch-idl.c:18
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:1437
struct ovsdb_idl_column ovsrec_port_columns[OVSREC_PORT_N_COLUMNS]
Definition: vswitch-idl.c:18695
void ovsdb_idl_txn_verify(const struct ovsdb_idl_row *, const struct ovsdb_idl_column *)
Definition: ovsdb-idl.c:2168
void ovsrec_port_verify_mac ( const struct ovsrec_port row)
17306 {
17307  ovs_assert(inited);
17309 }
#define ovs_assert(CONDITION)
Definition: util.h:73
static bool inited
Definition: vswitch-idl.c:18
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:1437
struct ovsdb_idl_column ovsrec_port_columns[OVSREC_PORT_N_COLUMNS]
Definition: vswitch-idl.c:18695
Definition: vswitch-idl.h:1517
void ovsdb_idl_txn_verify(const struct ovsdb_idl_row *, const struct ovsdb_idl_column *)
Definition: ovsdb-idl.c:2168
void ovsrec_port_verify_name ( const struct ovsrec_port row)
17338 {
17339  ovs_assert(inited);
17341 }
#define ovs_assert(CONDITION)
Definition: util.h:73
static bool inited
Definition: vswitch-idl.c:18
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:1437
struct ovsdb_idl_column ovsrec_port_columns[OVSREC_PORT_N_COLUMNS]
Definition: vswitch-idl.c:18695
void ovsdb_idl_txn_verify(const struct ovsdb_idl_row *, const struct ovsdb_idl_column *)
Definition: ovsdb-idl.c:2168
Definition: vswitch-idl.h:1518
void ovsrec_port_verify_other_config ( const struct ovsrec_port row)
17370 {
17371  ovs_assert(inited);
17373 }
Definition: vswitch-idl.h:1519
#define ovs_assert(CONDITION)
Definition: util.h:73
static bool inited
Definition: vswitch-idl.c:18
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:1437
struct ovsdb_idl_column ovsrec_port_columns[OVSREC_PORT_N_COLUMNS]
Definition: vswitch-idl.c:18695
void ovsdb_idl_txn_verify(const struct ovsdb_idl_row *, const struct ovsdb_idl_column *)
Definition: ovsdb-idl.c:2168
void ovsrec_port_verify_qos ( const struct ovsrec_port row)
17402 {
17403  ovs_assert(inited);
17405 }
#define ovs_assert(CONDITION)
Definition: util.h:73
static bool inited
Definition: vswitch-idl.c:18
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:1437
Definition: vswitch-idl.h:1520
struct ovsdb_idl_column ovsrec_port_columns[OVSREC_PORT_N_COLUMNS]
Definition: vswitch-idl.c:18695
void ovsdb_idl_txn_verify(const struct ovsdb_idl_row *, const struct ovsdb_idl_column *)
Definition: ovsdb-idl.c:2168
void ovsrec_port_verify_rstp_statistics ( const struct ovsrec_port row)
17434 {
17435  ovs_assert(inited);
17437 }
Definition: vswitch-idl.h:1521
#define ovs_assert(CONDITION)
Definition: util.h:73
static bool inited
Definition: vswitch-idl.c:18
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:1437
struct ovsdb_idl_column ovsrec_port_columns[OVSREC_PORT_N_COLUMNS]
Definition: vswitch-idl.c:18695
void ovsdb_idl_txn_verify(const struct ovsdb_idl_row *, const struct ovsdb_idl_column *)
Definition: ovsdb-idl.c:2168
void ovsrec_port_verify_rstp_status ( const struct ovsrec_port row)
17466 {
17467  ovs_assert(inited);
17469 }
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: vswitch-idl.h:1522
static bool inited
Definition: vswitch-idl.c:18
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:1437
struct ovsdb_idl_column ovsrec_port_columns[OVSREC_PORT_N_COLUMNS]
Definition: vswitch-idl.c:18695
void ovsdb_idl_txn_verify(const struct ovsdb_idl_row *, const struct ovsdb_idl_column *)
Definition: ovsdb-idl.c:2168
void ovsrec_port_verify_statistics ( const struct ovsrec_port row)
17498 {
17499  ovs_assert(inited);
17501 }
#define ovs_assert(CONDITION)
Definition: util.h:73
static bool inited
Definition: vswitch-idl.c:18
Definition: vswitch-idl.h:1523
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:1437
struct ovsdb_idl_column ovsrec_port_columns[OVSREC_PORT_N_COLUMNS]
Definition: vswitch-idl.c:18695
void ovsdb_idl_txn_verify(const struct ovsdb_idl_row *, const struct ovsdb_idl_column *)
Definition: ovsdb-idl.c:2168
void ovsrec_port_verify_status ( const struct ovsrec_port row)
17530 {
17531  ovs_assert(inited);
17533 }
#define ovs_assert(CONDITION)
Definition: util.h:73
static bool inited
Definition: vswitch-idl.c:18
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:1437
struct ovsdb_idl_column ovsrec_port_columns[OVSREC_PORT_N_COLUMNS]
Definition: vswitch-idl.c:18695
void ovsdb_idl_txn_verify(const struct ovsdb_idl_row *, const struct ovsdb_idl_column *)
Definition: ovsdb-idl.c:2168
Definition: vswitch-idl.h:1524
void ovsrec_port_verify_tag ( const struct ovsrec_port row)
17562 {
17563  ovs_assert(inited);
17565 }
#define ovs_assert(CONDITION)
Definition: util.h:73
static bool inited
Definition: vswitch-idl.c:18
Definition: vswitch-idl.h:1525
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:1437
struct ovsdb_idl_column ovsrec_port_columns[OVSREC_PORT_N_COLUMNS]
Definition: vswitch-idl.c:18695
void ovsdb_idl_txn_verify(const struct ovsdb_idl_row *, const struct ovsdb_idl_column *)
Definition: ovsdb-idl.c:2168
void ovsrec_port_verify_trunks ( const struct ovsrec_port row)
17594 {
17595  ovs_assert(inited);
17597 }
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: vswitch-idl.h:1526
static bool inited
Definition: vswitch-idl.c:18
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:1437
struct ovsdb_idl_column ovsrec_port_columns[OVSREC_PORT_N_COLUMNS]
Definition: vswitch-idl.c:18695
void ovsdb_idl_txn_verify(const struct ovsdb_idl_row *, const struct ovsdb_idl_column *)
Definition: ovsdb-idl.c:2168
void ovsrec_port_verify_vlan_mode ( const struct ovsrec_port row)
17626 {
17627  ovs_assert(inited);
17629 }
#define ovs_assert(CONDITION)
Definition: util.h:73
static bool inited
Definition: vswitch-idl.c:18
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:1437
struct ovsdb_idl_column ovsrec_port_columns[OVSREC_PORT_N_COLUMNS]
Definition: vswitch-idl.c:18695
void ovsdb_idl_txn_verify(const struct ovsdb_idl_row *, const struct ovsdb_idl_column *)
Definition: ovsdb-idl.c:2168
Definition: vswitch-idl.h:1527
static struct ovsrec_qos* ovsrec_qos_cast ( const struct ovsdb_idl_row row)
static
95 {
96  return row ? CONTAINER_OF(row, struct ovsrec_qos, header_) : NULL;
97 }
#define CONTAINER_OF(POINTER, STRUCT, MEMBER)
Definition: util.h:207
Definition: vswitch-idl.h:1635
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:1437
static void ovsrec_qos_columns_init ( void  )
static
19501 {
19502  struct ovsdb_idl_column *c;
19503 
19504  /* Initialize ovsrec_qos_col_external_ids. */
19506  c->name = "external_ids";
19508  c->type.key.u.string.minLen = 0;
19510  c->type.value.u.string.minLen = 0;
19511  c->type.n_min = 0;
19512  c->type.n_max = UINT_MAX;
19513  c->mutable = true;
19516 
19517  /* Initialize ovsrec_qos_col_other_config. */
19519  c->name = "other_config";
19521  c->type.key.u.string.minLen = 0;
19523  c->type.value.u.string.minLen = 0;
19524  c->type.n_min = 0;
19525  c->type.n_max = UINT_MAX;
19526  c->mutable = true;
19529 
19530  /* Initialize ovsrec_qos_col_queues. */
19531  c = &ovsrec_qos_col_queues;
19532  c->name = "queues";
19534  c->type.key.u.integer.min = INT64_C(0);
19535  c->type.key.u.integer.max = INT64_C(4294967295);
19537  c->type.value.u.uuid.refTableName = "Queue";
19538  c->type.value.u.uuid.refType = OVSDB_REF_STRONG;
19539  c->type.n_min = 0;
19540  c->type.n_max = UINT_MAX;
19541  c->mutable = true;
19544 
19545  /* Initialize ovsrec_qos_col_type. */
19546  c = &ovsrec_qos_col_type;
19547  c->name = "type";
19549  c->type.key.u.string.minLen = 0;
19551  c->type.n_min = 1;
19552  c->type.n_max = 1;
19553  c->mutable = true;
19556 }
static void ovsrec_qos_parse_other_config(struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
Definition: vswitch-idl.c:18990
void(* unparse)(struct ovsdb_idl_row *)
Definition: ovsdb-idl-provider.h:46
static void ovsrec_qos_unparse_queues(struct ovsdb_idl_row *row_)
Definition: vswitch-idl.c:19060
Definition: ovsdb-idl-provider.h:41
struct ovsdb_base_type::@145::ovsdb_string_constraints string
#define ovsrec_qos_col_other_config
Definition: vswitch-idl.h:1662
void ovsdb_base_type_init(struct ovsdb_base_type *base, enum ovsdb_atomic_type type)
Definition: ovsdb-types.c:117
union ovsdb_base_type::@145 u
static void ovsrec_qos_parse_type(struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
Definition: vswitch-idl.c:19029
unsigned int n_min
Definition: ovsdb-types.h:136
struct ovsdb_base_type key
Definition: ovsdb-types.h:134
void(* parse)(struct ovsdb_idl_row *, const struct ovsdb_datum *)
Definition: ovsdb-idl-provider.h:45
unsigned int n_max
Definition: ovsdb-types.h:137
Definition: ovsdb-types.h:33
struct ovsdb_base_type value
Definition: ovsdb-types.h:135
char * name
Definition: ovsdb-idl-provider.h:42
Definition: ovsdb-types.h:34
Definition: ovsdb-types.h:30
static void ovsrec_qos_unparse_other_config(struct ovsdb_idl_row *row_)
Definition: vswitch-idl.c:19051
static void ovsrec_qos_parse_queues(struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
Definition: vswitch-idl.c:19005
#define ovsrec_qos_col_queues
Definition: vswitch-idl.h:1664
struct ovsdb_type type
Definition: ovsdb-idl-provider.h:43
struct ovsdb_base_type::@145::ovsdb_uuid_constraints uuid
bool mutable
Definition: ovsdb-idl-provider.h:44
Definition: ovsdb-types.h:29
static void ovsrec_qos_unparse_type(struct ovsdb_idl_row *row OVS_UNUSED)
Definition: vswitch-idl.c:19070
#define ovsrec_qos_col_type
Definition: vswitch-idl.h:1663
static void ovsrec_qos_parse_external_ids(struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
Definition: vswitch-idl.c:18975
struct ovsdb_base_type::@145::ovsdb_integer_constraints integer
#define ovsrec_qos_col_external_ids
Definition: vswitch-idl.h:1661
Definition: ovsdb-types.h:48
static void ovsrec_qos_unparse_external_ids(struct ovsdb_idl_row *row_)
Definition: vswitch-idl.c:19042
void ovsrec_qos_delete ( const struct ovsrec_qos row)
19124 {
19126 }
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:1636
void ovsdb_idl_txn_delete(const struct ovsdb_idl_row *row_)
Definition: ovsdb-idl.c:2208
const struct ovsrec_qos* ovsrec_qos_first ( const struct ovsdb_idl idl)
19106 {
19108 }
struct ovsdb_idl_table_class ovsrec_table_classes[OVSREC_N_TABLES]
Definition: vswitch-idl.c:21482
Definition: vswitch-idl.h:1926
static struct ovsrec_qos * ovsrec_qos_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:94
const struct ovsdb_idl_row * ovsdb_idl_first_row(const struct ovsdb_idl *idl, const struct ovsdb_idl_table_class *table_class)
Definition: ovsdb-idl.c:1290
const struct ovsdb_datum* ovsrec_qos_get_external_ids ( const struct ovsrec_qos row,
enum ovsdb_atomic_type key_type  OVS_UNUSED,
enum ovsdb_atomic_type value_type  OVS_UNUSED 
)
19293 {
19294  ovs_assert(key_type == OVSDB_TYPE_STRING);
19295  ovs_assert(value_type == OVSDB_TYPE_STRING);
19297 }
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: ovsdb-types.h:33
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:1636
const struct ovsdb_datum * ovsdb_idl_read(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column)
Definition: ovsdb-idl.c:1320
#define ovsrec_qos_col_external_ids
Definition: vswitch-idl.h:1661
const struct ovsrec_qos* ovsrec_qos_get_for_uuid ( const struct ovsdb_idl idl,
const struct uuid uuid 
)
19094 {
19096 }
const struct ovsdb_idl_row * ovsdb_idl_get_row_for_uuid(const struct ovsdb_idl *idl, const struct ovsdb_idl_table_class *tc, const struct uuid *uuid)
Definition: ovsdb-idl.c:1262
struct ovsdb_idl_table_class ovsrec_table_classes[OVSREC_N_TABLES]
Definition: vswitch-idl.c:21482
Definition: vswitch-idl.h:1926
static struct ovsrec_qos * ovsrec_qos_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:94
const struct ovsdb_datum* ovsrec_qos_get_other_config ( const struct ovsrec_qos row,
enum ovsdb_atomic_type key_type  OVS_UNUSED,
enum ovsdb_atomic_type value_type  OVS_UNUSED 
)
19323 {
19324  ovs_assert(key_type == OVSDB_TYPE_STRING);
19325  ovs_assert(value_type == OVSDB_TYPE_STRING);
19327 }
#define ovsrec_qos_col_other_config
Definition: vswitch-idl.h:1662
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: ovsdb-types.h:33
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:1636
const struct ovsdb_datum * ovsdb_idl_read(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column)
Definition: ovsdb-idl.c:1320
const struct ovsdb_datum* ovsrec_qos_get_queues ( const struct ovsrec_qos row,
enum ovsdb_atomic_type key_type  OVS_UNUSED,
enum ovsdb_atomic_type value_type  OVS_UNUSED 
)
19353 {
19354  ovs_assert(key_type == OVSDB_TYPE_INTEGER);
19355  ovs_assert(value_type == OVSDB_TYPE_UUID);
19357 }
#define ovs_assert(CONDITION)
Definition: util.h:73
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:1636
Definition: ovsdb-types.h:34
Definition: ovsdb-types.h:30
#define ovsrec_qos_col_queues
Definition: vswitch-idl.h:1664
const struct ovsdb_datum * ovsdb_idl_read(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column)
Definition: ovsdb-idl.c:1320
const struct ovsdb_datum* ovsrec_qos_get_type ( const struct ovsrec_qos row,
enum ovsdb_atomic_type key_type  OVS_UNUSED 
)
19381 {
19382  ovs_assert(key_type == OVSDB_TYPE_STRING);
19383  return ovsdb_idl_read(&row->header_, &ovsrec_qos_col_type);
19384 }
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: ovsdb-types.h:33
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:1636
#define ovsrec_qos_col_type
Definition: vswitch-idl.h:1663
const struct ovsdb_datum * ovsdb_idl_read(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column)
Definition: ovsdb-idl.c:1320
void ovsrec_qos_init ( struct ovsrec_qos row)
19084 {
19085  memset(row, 0, sizeof *row);
19086  smap_init(&row->external_ids);
19087  smap_init(&row->other_config);
19088 }
void smap_init(struct smap *smap)
Definition: smap.c:33
struct smap other_config
Definition: vswitch-idl.h:1642
struct smap external_ids
Definition: vswitch-idl.h:1639
static void ovsrec_qos_init__ ( struct ovsdb_idl_row row)
static
19077 {
19079 }
static struct ovsrec_qos * ovsrec_qos_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:94
void ovsrec_qos_init(struct ovsrec_qos *row)
Definition: vswitch-idl.c:19083
struct ovsrec_qos* ovsrec_qos_insert ( struct ovsdb_idl_txn txn)
19137 {
19139 }
struct ovsdb_idl_table_class ovsrec_table_classes[OVSREC_N_TABLES]
Definition: vswitch-idl.c:21482
Definition: vswitch-idl.h:1926
static struct ovsrec_qos * ovsrec_qos_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:94
const struct ovsdb_idl_row * ovsdb_idl_txn_insert(struct ovsdb_idl_txn *txn, const struct ovsdb_idl_table_class *class, const struct uuid *uuid)
Definition: ovsdb-idl.c:2247
const struct ovsrec_qos* ovsrec_qos_next ( const struct ovsrec_qos row)
19114 {
19116 }
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:1636
static struct ovsrec_qos * ovsrec_qos_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:94
const struct ovsdb_idl_row * ovsdb_idl_next_row(const struct ovsdb_idl_row *row)
Definition: ovsdb-idl.c:1301
static void ovsrec_qos_parse_external_ids ( struct ovsdb_idl_row row_,
const struct ovsdb_datum datum 
)
static
18976 {
18977  struct ovsrec_qos *row = ovsrec_qos_cast(row_);
18978  size_t i;
18979 
18980  ovs_assert(inited);
18981  smap_init(&row->external_ids);
18982  for (i = 0; i < datum->n; i++) {
18983  smap_add(&row->external_ids,
18984  datum->keys[i].string,
18985  datum->values[i].string);
18986  }
18987 }
#define ovs_assert(CONDITION)
Definition: util.h:73
void smap_init(struct smap *smap)
Definition: smap.c:33
char * string
Definition: ovsdb-data.h:33
struct smap_node * smap_add(struct smap *smap, const char *key, const char *value)
Definition: smap.c:50
union ovsdb_atom * keys
Definition: ovsdb-data.h:127
union ovsdb_atom * values
Definition: ovsdb-data.h:128
static struct ovsrec_qos * ovsrec_qos_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:94
Definition: vswitch-idl.h:1635
static bool inited
Definition: vswitch-idl.c:18
unsigned int n
Definition: ovsdb-data.h:126
struct smap external_ids
Definition: vswitch-idl.h:1639
static void ovsrec_qos_parse_other_config ( struct ovsdb_idl_row row_,
const struct ovsdb_datum datum 
)
static
18991 {
18992  struct ovsrec_qos *row = ovsrec_qos_cast(row_);
18993  size_t i;
18994 
18995  ovs_assert(inited);
18996  smap_init(&row->other_config);
18997  for (i = 0; i < datum->n; i++) {
18998  smap_add(&row->other_config,
18999  datum->keys[i].string,
19000  datum->values[i].string);
19001  }
19002 }
#define ovs_assert(CONDITION)
Definition: util.h:73
void smap_init(struct smap *smap)
Definition: smap.c:33
char * string
Definition: ovsdb-data.h:33
struct smap_node * smap_add(struct smap *smap, const char *key, const char *value)
Definition: smap.c:50
union ovsdb_atom * keys
Definition: ovsdb-data.h:127
union ovsdb_atom * values
Definition: ovsdb-data.h:128
static struct ovsrec_qos * ovsrec_qos_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:94
Definition: vswitch-idl.h:1635
static bool inited
Definition: vswitch-idl.c:18
unsigned int n
Definition: ovsdb-data.h:126
struct smap other_config
Definition: vswitch-idl.h:1642
static void ovsrec_qos_parse_queues ( struct ovsdb_idl_row row_,
const struct ovsdb_datum datum 
)
static
19006 {
19007  struct ovsrec_qos *row = ovsrec_qos_cast(row_);
19008  size_t i;
19009 
19010  ovs_assert(inited);
19011  row->key_queues = NULL;
19012  row->value_queues = NULL;
19013  row->n_queues = 0;
19014  for (i = 0; i < datum->n; i++) {
19016  if (valueRow) {
19017  if (!row->n_queues) {
19018  row->key_queues = xmalloc(datum->n * sizeof *row->key_queues);
19019  row->value_queues = xmalloc(datum->n * sizeof *row->value_queues);
19020  }
19021  row->key_queues[row->n_queues] = datum->keys[i].integer;
19022  row->value_queues[row->n_queues] = valueRow;
19023  row->n_queues++;
19024  }
19025  }
19026 }
int64_t integer
Definition: ovsdb-data.h:30
int64_t * key_queues
Definition: vswitch-idl.h:1645
struct ovsdb_idl_table_class ovsrec_table_classes[OVSREC_N_TABLES]
Definition: vswitch-idl.c:21482
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: vswitch-idl.h:1927
Definition: vswitch-idl.h:1701
struct ovsdb_idl_row * ovsdb_idl_get_row_arc(struct ovsdb_idl_row *src, struct ovsdb_idl_table_class *dst_table, const struct uuid *dst_uuid)
Definition: ovsdb-idl.c:1216
union ovsdb_atom * keys
Definition: ovsdb-data.h:127
void * xmalloc(size_t size)
Definition: util.c:110
union ovsdb_atom * values
Definition: ovsdb-data.h:128
static struct ovsrec_qos * ovsrec_qos_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:94
Definition: vswitch-idl.h:1635
static bool inited
Definition: vswitch-idl.c:18
unsigned int n
Definition: ovsdb-data.h:126
struct uuid uuid
Definition: ovsdb-data.h:34
static struct ovsrec_queue * ovsrec_queue_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:100
struct ovsrec_queue ** value_queues
Definition: vswitch-idl.h:1646
size_t n_queues
Definition: vswitch-idl.h:1647
static void ovsrec_qos_parse_type ( struct ovsdb_idl_row row_,
const struct ovsdb_datum datum 
)
static
19030 {
19031  struct ovsrec_qos *row = ovsrec_qos_cast(row_);
19032 
19033  ovs_assert(inited);
19034  if (datum->n >= 1) {
19035  row->type = datum->keys[0].string;
19036  } else {
19037  row->type = "";
19038  }
19039 }
#define ovs_assert(CONDITION)
Definition: util.h:73
char * string
Definition: ovsdb-data.h:33
union ovsdb_atom * keys
Definition: ovsdb-data.h:127
static struct ovsrec_qos * ovsrec_qos_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:94
Definition: vswitch-idl.h:1635
static bool inited
Definition: vswitch-idl.c:18
unsigned int n
Definition: ovsdb-data.h:126
char * type
Definition: vswitch-idl.h:1650
void ovsrec_qos_set_external_ids ( const struct ovsrec_qos row,
const struct smap external_ids 
)
19392 {
19393  struct ovsdb_datum datum;
19394 
19395  ovs_assert(inited);
19396  if (external_ids) {
19397  struct smap_node *node;
19398  size_t i;
19399 
19400  datum.n = smap_count(external_ids);
19401  datum.keys = xmalloc(datum.n * sizeof *datum.keys);
19402  datum.values = xmalloc(datum.n * sizeof *datum.values);
19403 
19404  i = 0;
19405  SMAP_FOR_EACH (node, external_ids) {
19406  datum.keys[i].string = xstrdup(node->key);
19407  datum.values[i].string = xstrdup(node->value);
19408  i++;
19409  }
19411  } else {
19412  ovsdb_datum_init_empty(&datum);
19413  }
19416  &datum);
19417 }
char * value
Definition: smap.h:31
Definition: ovsdb-data.h:125
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: ovsdb-types.h:33
size_t ovsdb_datum_sort_unique(struct ovsdb_datum *datum, enum ovsdb_atomic_type key_type, enum ovsdb_atomic_type value_type)
Definition: ovsdb-data.c:1089
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:1636
#define SMAP_FOR_EACH(SMAP_NODE, SMAP)
Definition: smap.h:36
void * xmalloc(size_t size)
Definition: util.c:110
char * xstrdup(const char *s)
Definition: util.c:149
struct ovsdb_idl_column ovsrec_qos_columns[OVSREC_QOS_N_COLUMNS]
Definition: vswitch-idl.c:19497
static bool inited
Definition: vswitch-idl.c:18
struct hmap_node node
Definition: smap.h:29
Definition: vswitch-idl.h:1654
Definition: smap.h:28
size_t smap_count(const struct smap *smap)
Definition: smap.c:238
void ovsdb_datum_init_empty(struct ovsdb_datum *datum)
Definition: ovsdb-data.c:835
void ovsdb_idl_txn_write(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column, struct ovsdb_datum *datum)
Definition: ovsdb-idl.c:2123
char * key
Definition: smap.h:30
void ovsrec_qos_set_other_config ( const struct ovsrec_qos row,
const struct smap other_config 
)
19426 {
19427  struct ovsdb_datum datum;
19428 
19429  ovs_assert(inited);
19430  if (other_config) {
19431  struct smap_node *node;
19432  size_t i;
19433 
19434  datum.n = smap_count(other_config);
19435  datum.keys = xmalloc(datum.n * sizeof *datum.keys);
19436  datum.values = xmalloc(datum.n * sizeof *datum.values);
19437 
19438  i = 0;
19439  SMAP_FOR_EACH (node, other_config) {
19440  datum.keys[i].string = xstrdup(node->key);
19441  datum.values[i].string = xstrdup(node->value);
19442  i++;
19443  }
19445  } else {
19446  ovsdb_datum_init_empty(&datum);
19447  }
19450  &datum);
19451 }
char * value
Definition: smap.h:31
Definition: ovsdb-data.h:125
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: ovsdb-types.h:33
size_t ovsdb_datum_sort_unique(struct ovsdb_datum *datum, enum ovsdb_atomic_type key_type, enum ovsdb_atomic_type value_type)
Definition: ovsdb-data.c:1089
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:1636
#define SMAP_FOR_EACH(SMAP_NODE, SMAP)
Definition: smap.h:36
void * xmalloc(size_t size)
Definition: util.c:110
char * xstrdup(const char *s)
Definition: util.c:149
struct ovsdb_idl_column ovsrec_qos_columns[OVSREC_QOS_N_COLUMNS]
Definition: vswitch-idl.c:19497
static bool inited
Definition: vswitch-idl.c:18
struct hmap_node node
Definition: smap.h:29
Definition: smap.h:28
size_t smap_count(const struct smap *smap)
Definition: smap.c:238
void ovsdb_datum_init_empty(struct ovsdb_datum *datum)
Definition: ovsdb-data.c:835
void ovsdb_idl_txn_write(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column, struct ovsdb_datum *datum)
Definition: ovsdb-idl.c:2123
Definition: vswitch-idl.h:1655
char * key
Definition: smap.h:30
void ovsrec_qos_set_queues ( const struct ovsrec_qos row,
const int64_t key_queues,
struct ovsrec_queue **  value_queues,
size_t  n_queues 
)
19463 {
19464  struct ovsdb_datum datum;
19465  size_t i;
19466 
19467  ovs_assert(inited);
19468  datum.n = n_queues;
19469  datum.keys = n_queues ? xmalloc(n_queues * sizeof *datum.keys) : NULL;
19470  datum.values = xmalloc(n_queues * sizeof *datum.values);
19471  for (i = 0; i < n_queues; i++) {
19472  datum.keys[i].integer = key_queues[i];
19473  datum.values[i].uuid = value_queues[i]->header_.uuid;
19474  }
19477 }
Definition: ovsdb-data.h:125
#define ovs_assert(CONDITION)
Definition: util.h:73
size_t ovsdb_datum_sort_unique(struct ovsdb_datum *datum, enum ovsdb_atomic_type key_type, enum ovsdb_atomic_type value_type)
Definition: ovsdb-data.c:1089
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:1636
Definition: ovsdb-types.h:34
Definition: ovsdb-types.h:30
void * xmalloc(size_t size)
Definition: util.c:110
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:1702
struct ovsdb_idl_column ovsrec_qos_columns[OVSREC_QOS_N_COLUMNS]
Definition: vswitch-idl.c:19497
static bool inited
Definition: vswitch-idl.c:18
Definition: vswitch-idl.h:1656
void ovsdb_idl_txn_write(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column, struct ovsdb_datum *datum)
Definition: ovsdb-idl.c:2123
struct uuid uuid
Definition: ovsdb-idl-provider.h:28
void ovsrec_qos_set_type ( const struct ovsrec_qos row,
const char *  type 
)
19485 {
19486  struct ovsdb_datum datum;
19487  union ovsdb_atom key;
19488 
19489  ovs_assert(inited);
19490  datum.n = 1;
19491  datum.keys = &key;
19492  key.string = CONST_CAST(char *, type);
19493  datum.values = NULL;
19495 }
Definition: ovsdb-data.h:125
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: ovsdb-data.h:29
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:1636
Definition: vswitch-idl.h:1657
struct ovsdb_idl_column ovsrec_qos_columns[OVSREC_QOS_N_COLUMNS]
Definition: vswitch-idl.c:19497
static bool inited
Definition: vswitch-idl.c:18
#define CONST_CAST(TYPE, POINTER)
Definition: util.h:88
static struct aes128 key
Definition: uuid.c:34
__be16 type
Definition: flow.h:117
void ovsdb_idl_txn_write_clone(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column, const struct ovsdb_datum *datum)
Definition: ovsdb-idl.c:2131
static void ovsrec_qos_unparse_external_ids ( struct ovsdb_idl_row row_)
static
19043 {
19044  struct ovsrec_qos *row = ovsrec_qos_cast(row_);
19045 
19046  ovs_assert(inited);
19047  smap_destroy(&row->external_ids);
19048 }
#define ovs_assert(CONDITION)
Definition: util.h:73
static struct ovsrec_qos * ovsrec_qos_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:94
Definition: vswitch-idl.h:1635
static bool inited
Definition: vswitch-idl.c:18
void smap_destroy(struct smap *smap)
Definition: smap.c:39
struct smap external_ids
Definition: vswitch-idl.h:1639
static void ovsrec_qos_unparse_other_config ( struct ovsdb_idl_row row_)
static
19052 {
19053  struct ovsrec_qos *row = ovsrec_qos_cast(row_);
19054 
19055  ovs_assert(inited);
19056  smap_destroy(&row->other_config);
19057 }
#define ovs_assert(CONDITION)
Definition: util.h:73
static struct ovsrec_qos * ovsrec_qos_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:94
Definition: vswitch-idl.h:1635
static bool inited
Definition: vswitch-idl.c:18
void smap_destroy(struct smap *smap)
Definition: smap.c:39
struct smap other_config
Definition: vswitch-idl.h:1642
static void ovsrec_qos_unparse_queues ( struct ovsdb_idl_row row_)
static
19061 {
19062  struct ovsrec_qos *row = ovsrec_qos_cast(row_);
19063 
19064  ovs_assert(inited);
19065  free(row->key_queues);
19066  free(row->value_queues);
19067 }
int64_t * key_queues
Definition: vswitch-idl.h:1645
#define ovs_assert(CONDITION)
Definition: util.h:73
static struct ovsrec_qos * ovsrec_qos_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:94
Definition: vswitch-idl.h:1635
static bool inited
Definition: vswitch-idl.c:18
struct ovsrec_queue ** value_queues
Definition: vswitch-idl.h:1646
static void ovsrec_qos_unparse_type ( struct ovsdb_idl_row *row  OVS_UNUSED)
static
19071 {
19072  /* Nothing to do. */
19073 }
void ovsrec_qos_verify_external_ids ( const struct ovsrec_qos row)
19168 {
19169  ovs_assert(inited);
19171 }
#define ovs_assert(CONDITION)
Definition: util.h:73
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:1636
struct ovsdb_idl_column ovsrec_qos_columns[OVSREC_QOS_N_COLUMNS]
Definition: vswitch-idl.c:19497
static bool inited
Definition: vswitch-idl.c:18
Definition: vswitch-idl.h:1654
void ovsdb_idl_txn_verify(const struct ovsdb_idl_row *, const struct ovsdb_idl_column *)
Definition: ovsdb-idl.c:2168
void ovsrec_qos_verify_other_config ( const struct ovsrec_qos row)
19200 {
19201  ovs_assert(inited);
19203 }
#define ovs_assert(CONDITION)
Definition: util.h:73
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:1636
struct ovsdb_idl_column ovsrec_qos_columns[OVSREC_QOS_N_COLUMNS]
Definition: vswitch-idl.c:19497
static bool inited
Definition: vswitch-idl.c:18
void ovsdb_idl_txn_verify(const struct ovsdb_idl_row *, const struct ovsdb_idl_column *)
Definition: ovsdb-idl.c:2168
Definition: vswitch-idl.h:1655
void ovsrec_qos_verify_queues ( const struct ovsrec_qos row)
19232 {
19233  ovs_assert(inited);
19235 }
#define ovs_assert(CONDITION)
Definition: util.h:73
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:1636
struct ovsdb_idl_column ovsrec_qos_columns[OVSREC_QOS_N_COLUMNS]
Definition: vswitch-idl.c:19497
static bool inited
Definition: vswitch-idl.c:18
void ovsdb_idl_txn_verify(const struct ovsdb_idl_row *, const struct ovsdb_idl_column *)
Definition: ovsdb-idl.c:2168
Definition: vswitch-idl.h:1656
void ovsrec_qos_verify_type ( const struct ovsrec_qos row)
19264 {
19265  ovs_assert(inited);
19267 }
#define ovs_assert(CONDITION)
Definition: util.h:73
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:1636
Definition: vswitch-idl.h:1657
struct ovsdb_idl_column ovsrec_qos_columns[OVSREC_QOS_N_COLUMNS]
Definition: vswitch-idl.c:19497
static bool inited
Definition: vswitch-idl.c:18
void ovsdb_idl_txn_verify(const struct ovsdb_idl_row *, const struct ovsdb_idl_column *)
Definition: ovsdb-idl.c:2168
static struct ovsrec_queue* ovsrec_queue_cast ( const struct ovsdb_idl_row row)
static
101 {
102  return row ? CONTAINER_OF(row, struct ovsrec_queue, header_) : NULL;
103 }
Definition: vswitch-idl.h:1701
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:1636
#define CONTAINER_OF(POINTER, STRUCT, MEMBER)
Definition: util.h:207
static void ovsrec_queue_columns_init ( void  )
static
19985 {
19986  struct ovsdb_idl_column *c;
19987 
19988  /* Initialize ovsrec_queue_col_dscp. */
19989  c = &ovsrec_queue_col_dscp;
19990  c->name = "dscp";
19992  c->type.key.u.integer.min = INT64_C(0);
19993  c->type.key.u.integer.max = INT64_C(63);
19995  c->type.n_min = 0;
19996  c->type.n_max = 1;
19997  c->mutable = true;
20000 
20001  /* Initialize ovsrec_queue_col_external_ids. */
20003  c->name = "external_ids";
20005  c->type.key.u.string.minLen = 0;
20007  c->type.value.u.string.minLen = 0;
20008  c->type.n_min = 0;
20009  c->type.n_max = UINT_MAX;
20010  c->mutable = true;
20013 
20014  /* Initialize ovsrec_queue_col_other_config. */
20016  c->name = "other_config";
20018  c->type.key.u.string.minLen = 0;
20020  c->type.value.u.string.minLen = 0;
20021  c->type.n_min = 0;
20022  c->type.n_max = UINT_MAX;
20023  c->mutable = true;
20026 }
void(* unparse)(struct ovsdb_idl_row *)
Definition: ovsdb-idl-provider.h:46
Definition: ovsdb-idl-provider.h:41
struct ovsdb_base_type::@145::ovsdb_string_constraints string
void ovsdb_base_type_init(struct ovsdb_base_type *base, enum ovsdb_atomic_type type)
Definition: ovsdb-types.c:117
union ovsdb_base_type::@145 u
static void ovsrec_queue_parse_dscp(struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
Definition: vswitch-idl.c:19561
unsigned int n_min
Definition: ovsdb-types.h:136
struct ovsdb_base_type key
Definition: ovsdb-types.h:134
void(* parse)(struct ovsdb_idl_row *, const struct ovsdb_datum *)
Definition: ovsdb-idl-provider.h:45
unsigned int n_max
Definition: ovsdb-types.h:137
Definition: ovsdb-types.h:33
struct ovsdb_base_type value
Definition: ovsdb-types.h:135
char * name
Definition: ovsdb-idl-provider.h:42
Definition: ovsdb-types.h:30
#define ovsrec_queue_col_other_config
Definition: vswitch-idl.h:1723
static void ovsrec_queue_unparse_other_config(struct ovsdb_idl_row *row_)
Definition: vswitch-idl.c:19628
struct ovsdb_type type
Definition: ovsdb-idl-provider.h:43
#define ovsrec_queue_col_dscp
Definition: vswitch-idl.h:1724
bool mutable
Definition: ovsdb-idl-provider.h:44
Definition: ovsdb-types.h:29
static void ovsrec_queue_parse_external_ids(struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
Definition: vswitch-idl.c:19580
struct ovsdb_base_type::@145::ovsdb_integer_constraints integer
static void ovsrec_queue_parse_other_config(struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
Definition: vswitch-idl.c:19595
static void ovsrec_queue_unparse_external_ids(struct ovsdb_idl_row *row_)
Definition: vswitch-idl.c:19619
static void ovsrec_queue_unparse_dscp(struct ovsdb_idl_row *row_)
Definition: vswitch-idl.c:19610
#define ovsrec_queue_col_external_ids
Definition: vswitch-idl.h:1722
void ovsrec_queue_delete ( const struct ovsrec_queue row)
19685 {
19687 }
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:1702
void ovsdb_idl_txn_delete(const struct ovsdb_idl_row *row_)
Definition: ovsdb-idl.c:2208
const struct ovsrec_queue* ovsrec_queue_first ( const struct ovsdb_idl idl)
19667 {
19669 }
struct ovsdb_idl_table_class ovsrec_table_classes[OVSREC_N_TABLES]
Definition: vswitch-idl.c:21482
Definition: vswitch-idl.h:1927
static struct ovsrec_queue * ovsrec_queue_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:100
const struct ovsdb_idl_row * ovsdb_idl_first_row(const struct ovsdb_idl *idl, const struct ovsdb_idl_table_class *table_class)
Definition: ovsdb-idl.c:1290
const struct ovsdb_datum* ovsrec_queue_get_dscp ( const struct ovsrec_queue row,
enum ovsdb_atomic_type key_type  OVS_UNUSED 
)
19820 {
19821  ovs_assert(key_type == OVSDB_TYPE_INTEGER);
19823 }
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: ovsdb-types.h:30
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:1702
#define ovsrec_queue_col_dscp
Definition: vswitch-idl.h:1724
const struct ovsdb_datum * ovsdb_idl_read(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column)
Definition: ovsdb-idl.c:1320
const struct ovsdb_datum* ovsrec_queue_get_external_ids ( const struct ovsrec_queue row,
enum ovsdb_atomic_type key_type  OVS_UNUSED,
enum ovsdb_atomic_type value_type  OVS_UNUSED 
)
19849 {
19850  ovs_assert(key_type == OVSDB_TYPE_STRING);
19851  ovs_assert(value_type == OVSDB_TYPE_STRING);
19853 }
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: ovsdb-types.h:33
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:1702
const struct ovsdb_datum * ovsdb_idl_read(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column)
Definition: ovsdb-idl.c:1320
#define ovsrec_queue_col_external_ids
Definition: vswitch-idl.h:1722
const struct ovsrec_queue* ovsrec_queue_get_for_uuid ( const struct ovsdb_idl idl,
const struct uuid uuid 
)
19655 {
19657 }
const struct ovsdb_idl_row * ovsdb_idl_get_row_for_uuid(const struct ovsdb_idl *idl, const struct ovsdb_idl_table_class *tc, const struct uuid *uuid)
Definition: ovsdb-idl.c:1262
struct ovsdb_idl_table_class ovsrec_table_classes[OVSREC_N_TABLES]
Definition: vswitch-idl.c:21482
Definition: vswitch-idl.h:1927
static struct ovsrec_queue * ovsrec_queue_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:100
const struct ovsdb_datum* ovsrec_queue_get_other_config ( const struct ovsrec_queue row,
enum ovsdb_atomic_type key_type  OVS_UNUSED,
enum ovsdb_atomic_type value_type  OVS_UNUSED 
)
19879 {
19880  ovs_assert(key_type == OVSDB_TYPE_STRING);
19881  ovs_assert(value_type == OVSDB_TYPE_STRING);
19883 }
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: ovsdb-types.h:33
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:1702
#define ovsrec_queue_col_other_config
Definition: vswitch-idl.h:1723
const struct ovsdb_datum * ovsdb_idl_read(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column)
Definition: ovsdb-idl.c:1320
void ovsrec_queue_init ( struct ovsrec_queue row)
19645 {
19646  memset(row, 0, sizeof *row);
19647  smap_init(&row->external_ids);
19648  smap_init(&row->other_config);
19649 }
void smap_init(struct smap *smap)
Definition: smap.c:33
struct smap other_config
Definition: vswitch-idl.h:1712
struct smap external_ids
Definition: vswitch-idl.h:1709
static void ovsrec_queue_init__ ( struct ovsdb_idl_row row)
static
19638 {
19640 }
void ovsrec_queue_init(struct ovsrec_queue *row)
Definition: vswitch-idl.c:19644
static struct ovsrec_queue * ovsrec_queue_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:100
struct ovsrec_queue* ovsrec_queue_insert ( struct ovsdb_idl_txn txn)
19698 {
19700 }
struct ovsdb_idl_table_class ovsrec_table_classes[OVSREC_N_TABLES]
Definition: vswitch-idl.c:21482
Definition: vswitch-idl.h:1927
const struct ovsdb_idl_row * ovsdb_idl_txn_insert(struct ovsdb_idl_txn *txn, const struct ovsdb_idl_table_class *class, const struct uuid *uuid)
Definition: ovsdb-idl.c:2247
static struct ovsrec_queue * ovsrec_queue_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:100
const struct ovsrec_queue* ovsrec_queue_next ( const struct ovsrec_queue row)
19675 {
19677 }
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:1702
static struct ovsrec_queue * ovsrec_queue_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:100
const struct ovsdb_idl_row * ovsdb_idl_next_row(const struct ovsdb_idl_row *row)
Definition: ovsdb-idl.c:1301
static void ovsrec_queue_parse_dscp ( struct ovsdb_idl_row row_,
const struct ovsdb_datum datum 
)
static
19562 {
19563  struct ovsrec_queue *row = ovsrec_queue_cast(row_);
19564  size_t n = MIN(1, datum->n);
19565  size_t i;
19566 
19567  ovs_assert(inited);
19568  row->dscp = NULL;
19569  row->n_dscp = 0;
19570  for (i = 0; i < n; i++) {
19571  if (!row->n_dscp) {
19572  row->dscp = xmalloc(n * sizeof *row->dscp);
19573  }
19574  row->dscp[row->n_dscp] = datum->keys[i].integer;
19575  row->n_dscp++;
19576  }
19577 }
int64_t integer
Definition: ovsdb-data.h:30
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: vswitch-idl.h:1701
int64_t * dscp
Definition: vswitch-idl.h:1705
union ovsdb_atom * keys
Definition: ovsdb-data.h:127
void * xmalloc(size_t size)
Definition: util.c:110
static bool inited
Definition: vswitch-idl.c:18
unsigned int n
Definition: ovsdb-data.h:126
#define MIN(_a, _b)
Definition: Util.h:68
static struct ovsrec_queue * ovsrec_queue_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:100
size_t n_dscp
Definition: vswitch-idl.h:1706
static void ovsrec_queue_parse_external_ids ( struct ovsdb_idl_row row_,
const struct ovsdb_datum datum 
)
static
19581 {
19582  struct ovsrec_queue *row = ovsrec_queue_cast(row_);
19583  size_t i;
19584 
19585  ovs_assert(inited);
19586  smap_init(&row->external_ids);
19587  for (i = 0; i < datum->n; i++) {
19588  smap_add(&row->external_ids,
19589  datum->keys[i].string,
19590  datum->values[i].string);
19591  }
19592 }
#define ovs_assert(CONDITION)
Definition: util.h:73
void smap_init(struct smap *smap)
Definition: smap.c:33
Definition: vswitch-idl.h:1701
char * string
Definition: ovsdb-data.h:33
struct smap_node * smap_add(struct smap *smap, const char *key, const char *value)
Definition: smap.c:50
union ovsdb_atom * keys
Definition: ovsdb-data.h:127
union ovsdb_atom * values
Definition: ovsdb-data.h:128
static bool inited
Definition: vswitch-idl.c:18
unsigned int n
Definition: ovsdb-data.h:126
static struct ovsrec_queue * ovsrec_queue_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:100
struct smap external_ids
Definition: vswitch-idl.h:1709
static void ovsrec_queue_parse_other_config ( struct ovsdb_idl_row row_,
const struct ovsdb_datum datum 
)
static
19596 {
19597  struct ovsrec_queue *row = ovsrec_queue_cast(row_);
19598  size_t i;
19599 
19600  ovs_assert(inited);
19601  smap_init(&row->other_config);
19602  for (i = 0; i < datum->n; i++) {
19603  smap_add(&row->other_config,
19604  datum->keys[i].string,
19605  datum->values[i].string);
19606  }
19607 }
#define ovs_assert(CONDITION)
Definition: util.h:73
void smap_init(struct smap *smap)
Definition: smap.c:33
Definition: vswitch-idl.h:1701
char * string
Definition: ovsdb-data.h:33
struct smap_node * smap_add(struct smap *smap, const char *key, const char *value)
Definition: smap.c:50
union ovsdb_atom * keys
Definition: ovsdb-data.h:127
union ovsdb_atom * values
Definition: ovsdb-data.h:128
static bool inited
Definition: vswitch-idl.c:18
unsigned int n
Definition: ovsdb-data.h:126
struct smap other_config
Definition: vswitch-idl.h:1712
static struct ovsrec_queue * ovsrec_queue_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:100
void ovsrec_queue_set_dscp ( const struct ovsrec_queue row,
const int64_t dscp,
size_t  n_dscp 
)
19896 {
19897  struct ovsdb_datum datum;
19898  union ovsdb_atom key;
19899 
19900  ovs_assert(inited);
19901  if (n_dscp) {
19902  datum.n = 1;
19903  datum.keys = &key;
19904  key.integer = *dscp;
19905  } else {
19906  datum.n = 0;
19907  datum.keys = NULL;
19908  }
19909  datum.values = NULL;
19911 }
Definition: vswitch-idl.h:1716
Definition: ovsdb-data.h:125
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: ovsdb-data.h:29
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:1702
static bool inited
Definition: vswitch-idl.c:18
struct ovsdb_idl_column ovsrec_queue_columns[OVSREC_QUEUE_N_COLUMNS]
Definition: vswitch-idl.c:19981
static struct aes128 key
Definition: uuid.c:34
void ovsdb_idl_txn_write_clone(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column, const struct ovsdb_datum *datum)
Definition: ovsdb-idl.c:2131
void ovsrec_queue_set_external_ids ( const struct ovsrec_queue row,
const struct smap external_ids 
)
19919 {
19920  struct ovsdb_datum datum;
19921 
19922  ovs_assert(inited);
19923  if (external_ids) {
19924  struct smap_node *node;
19925  size_t i;
19926 
19927  datum.n = smap_count(external_ids);
19928  datum.keys = xmalloc(datum.n * sizeof *datum.keys);
19929  datum.values = xmalloc(datum.n * sizeof *datum.values);
19930 
19931  i = 0;
19932  SMAP_FOR_EACH (node, external_ids) {
19933  datum.keys[i].string = xstrdup(node->key);
19934  datum.values[i].string = xstrdup(node->value);
19935  i++;
19936  }
19938  } else {
19939  ovsdb_datum_init_empty(&datum);
19940  }
19943  &datum);
19944 }
char * value
Definition: smap.h:31
Definition: ovsdb-data.h:125
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: ovsdb-types.h:33
size_t ovsdb_datum_sort_unique(struct ovsdb_datum *datum, enum ovsdb_atomic_type key_type, enum ovsdb_atomic_type value_type)
Definition: ovsdb-data.c:1089
#define SMAP_FOR_EACH(SMAP_NODE, SMAP)
Definition: smap.h:36
void * xmalloc(size_t size)
Definition: util.c:110
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:1702
char * xstrdup(const char *s)
Definition: util.c:149
static bool inited
Definition: vswitch-idl.c:18
struct hmap_node node
Definition: smap.h:29
Definition: smap.h:28
size_t smap_count(const struct smap *smap)
Definition: smap.c:238
Definition: vswitch-idl.h:1717
void ovsdb_datum_init_empty(struct ovsdb_datum *datum)
Definition: ovsdb-data.c:835
struct ovsdb_idl_column ovsrec_queue_columns[OVSREC_QUEUE_N_COLUMNS]
Definition: vswitch-idl.c:19981
void ovsdb_idl_txn_write(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column, struct ovsdb_datum *datum)
Definition: ovsdb-idl.c:2123
char * key
Definition: smap.h:30
void ovsrec_queue_set_other_config ( const struct ovsrec_queue row,
const struct smap other_config 
)
19953 {
19954  struct ovsdb_datum datum;
19955 
19956  ovs_assert(inited);
19957  if (other_config) {
19958  struct smap_node *node;
19959  size_t i;
19960 
19961  datum.n = smap_count(other_config);
19962  datum.keys = xmalloc(datum.n * sizeof *datum.keys);
19963  datum.values = xmalloc(datum.n * sizeof *datum.values);
19964 
19965  i = 0;
19966  SMAP_FOR_EACH (node, other_config) {
19967  datum.keys[i].string = xstrdup(node->key);
19968  datum.values[i].string = xstrdup(node->value);
19969  i++;
19970  }
19972  } else {
19973  ovsdb_datum_init_empty(&datum);
19974  }
19977  &datum);
19978 }
char * value
Definition: smap.h:31
Definition: ovsdb-data.h:125
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: ovsdb-types.h:33
size_t ovsdb_datum_sort_unique(struct ovsdb_datum *datum, enum ovsdb_atomic_type key_type, enum ovsdb_atomic_type value_type)
Definition: ovsdb-data.c:1089
#define SMAP_FOR_EACH(SMAP_NODE, SMAP)
Definition: smap.h:36
void * xmalloc(size_t size)
Definition: util.c:110
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:1702
char * xstrdup(const char *s)
Definition: util.c:149
static bool inited
Definition: vswitch-idl.c:18
struct hmap_node node
Definition: smap.h:29
Definition: smap.h:28
size_t smap_count(const struct smap *smap)
Definition: smap.c:238
void ovsdb_datum_init_empty(struct ovsdb_datum *datum)
Definition: ovsdb-data.c:835
Definition: vswitch-idl.h:1718
struct ovsdb_idl_column ovsrec_queue_columns[OVSREC_QUEUE_N_COLUMNS]
Definition: vswitch-idl.c:19981
void ovsdb_idl_txn_write(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column, struct ovsdb_datum *datum)
Definition: ovsdb-idl.c:2123
char * key
Definition: smap.h:30
static void ovsrec_queue_unparse_dscp ( struct ovsdb_idl_row row_)
static
19611 {
19612  struct ovsrec_queue *row = ovsrec_queue_cast(row_);
19613 
19614  ovs_assert(inited);
19615  free(row->dscp);
19616 }
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: vswitch-idl.h:1701
int64_t * dscp
Definition: vswitch-idl.h:1705
static bool inited
Definition: vswitch-idl.c:18
static struct ovsrec_queue * ovsrec_queue_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:100
static void ovsrec_queue_unparse_external_ids ( struct ovsdb_idl_row row_)
static
19620 {
19621  struct ovsrec_queue *row = ovsrec_queue_cast(row_);
19622 
19623  ovs_assert(inited);
19624  smap_destroy(&row->external_ids);
19625 }
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: vswitch-idl.h:1701
static bool inited
Definition: vswitch-idl.c:18
void smap_destroy(struct smap *smap)
Definition: smap.c:39
static struct ovsrec_queue * ovsrec_queue_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:100
struct smap external_ids
Definition: vswitch-idl.h:1709
static void ovsrec_queue_unparse_other_config ( struct ovsdb_idl_row row_)
static
19629 {
19630  struct ovsrec_queue *row = ovsrec_queue_cast(row_);
19631 
19632  ovs_assert(inited);
19633  smap_destroy(&row->other_config);
19634 }
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: vswitch-idl.h:1701
static bool inited
Definition: vswitch-idl.c:18
void smap_destroy(struct smap *smap)
Definition: smap.c:39
struct smap other_config
Definition: vswitch-idl.h:1712
static struct ovsrec_queue * ovsrec_queue_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:100
void ovsrec_queue_verify_dscp ( const struct ovsrec_queue row)
19729 {
19730  ovs_assert(inited);
19732 }
Definition: vswitch-idl.h:1716
#define ovs_assert(CONDITION)
Definition: util.h:73
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:1702
static bool inited
Definition: vswitch-idl.c:18
void ovsdb_idl_txn_verify(const struct ovsdb_idl_row *, const struct ovsdb_idl_column *)
Definition: ovsdb-idl.c:2168
struct ovsdb_idl_column ovsrec_queue_columns[OVSREC_QUEUE_N_COLUMNS]
Definition: vswitch-idl.c:19981
void ovsrec_queue_verify_external_ids ( const struct ovsrec_queue row)
19761 {
19762  ovs_assert(inited);
19764 }
#define ovs_assert(CONDITION)
Definition: util.h:73
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:1702
static bool inited
Definition: vswitch-idl.c:18
Definition: vswitch-idl.h:1717
void ovsdb_idl_txn_verify(const struct ovsdb_idl_row *, const struct ovsdb_idl_column *)
Definition: ovsdb-idl.c:2168
struct ovsdb_idl_column ovsrec_queue_columns[OVSREC_QUEUE_N_COLUMNS]
Definition: vswitch-idl.c:19981
void ovsrec_queue_verify_other_config ( const struct ovsrec_queue row)
19793 {
19794  ovs_assert(inited);
19796 }
#define ovs_assert(CONDITION)
Definition: util.h:73
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:1702
static bool inited
Definition: vswitch-idl.c:18
Definition: vswitch-idl.h:1718
void ovsdb_idl_txn_verify(const struct ovsdb_idl_row *, const struct ovsdb_idl_column *)
Definition: ovsdb-idl.c:2168
struct ovsdb_idl_column ovsrec_queue_columns[OVSREC_QUEUE_N_COLUMNS]
Definition: vswitch-idl.c:19981
static struct ovsrec_sflow* ovsrec_sflow_cast ( const struct ovsdb_idl_row row)
static
113 {
114  return row ? CONTAINER_OF(row, struct ovsrec_sflow, header_) : NULL;
115 }
#define CONTAINER_OF(POINTER, STRUCT, MEMBER)
Definition: util.h:207
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:1702
Definition: vswitch-idl.h:1830
static void ovsrec_sflow_columns_init ( void  )
static
21408 {
21409  struct ovsdb_idl_column *c;
21410 
21411  /* Initialize ovsrec_sflow_col_agent. */
21413  c->name = "agent";
21415  c->type.key.u.string.minLen = 0;
21417  c->type.n_min = 0;
21418  c->type.n_max = 1;
21419  c->mutable = true;
21422 
21423  /* Initialize ovsrec_sflow_col_external_ids. */
21425  c->name = "external_ids";
21427  c->type.key.u.string.minLen = 0;
21429  c->type.value.u.string.minLen = 0;
21430  c->type.n_min = 0;
21431  c->type.n_max = UINT_MAX;
21432  c->mutable = true;
21435 
21436  /* Initialize ovsrec_sflow_col_header. */
21438  c->name = "header";
21441  c->type.n_min = 0;
21442  c->type.n_max = 1;
21443  c->mutable = true;
21446 
21447  /* Initialize ovsrec_sflow_col_polling. */
21449  c->name = "polling";
21452  c->type.n_min = 0;
21453  c->type.n_max = 1;
21454  c->mutable = true;
21457 
21458  /* Initialize ovsrec_sflow_col_sampling. */
21460  c->name = "sampling";
21463  c->type.n_min = 0;
21464  c->type.n_max = 1;
21465  c->mutable = true;
21468 
21469  /* Initialize ovsrec_sflow_col_targets. */
21471  c->name = "targets";
21473  c->type.key.u.string.minLen = 0;
21475  c->type.n_min = 1;
21476  c->type.n_max = UINT_MAX;
21477  c->mutable = true;
21480 }
void(* unparse)(struct ovsdb_idl_row *)
Definition: ovsdb-idl-provider.h:46
Definition: ovsdb-idl-provider.h:41
static void ovsrec_sflow_unparse_external_ids(struct ovsdb_idl_row *row_)
Definition: vswitch-idl.c:20779
struct ovsdb_base_type::@145::ovsdb_string_constraints string
void ovsdb_base_type_init(struct ovsdb_base_type *base, enum ovsdb_atomic_type type)
Definition: ovsdb-types.c:117
union ovsdb_base_type::@145 u
unsigned int n_min
Definition: ovsdb-types.h:136
struct ovsdb_base_type key
Definition: ovsdb-types.h:134
#define ovsrec_sflow_col_agent
Definition: vswitch-idl.h:1866
void(* parse)(struct ovsdb_idl_row *, const struct ovsdb_datum *)
Definition: ovsdb-idl-provider.h:45
unsigned int n_max
Definition: ovsdb-types.h:137
static void ovsrec_sflow_parse_sampling(struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
Definition: vswitch-idl.c:20736
Definition: ovsdb-types.h:33
struct ovsdb_base_type value
Definition: ovsdb-types.h:135
char * name
Definition: ovsdb-idl-provider.h:42
static void ovsrec_sflow_parse_header(struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
Definition: vswitch-idl.c:20698
#define ovsrec_sflow_col_targets
Definition: vswitch-idl.h:1871
static void ovsrec_sflow_unparse_targets(struct ovsdb_idl_row *row_)
Definition: vswitch-idl.c:20815
Definition: ovsdb-types.h:30
static void ovsrec_sflow_unparse_header(struct ovsdb_idl_row *row_)
Definition: vswitch-idl.c:20788
static void ovsrec_sflow_unparse_polling(struct ovsdb_idl_row *row_)
Definition: vswitch-idl.c:20797
struct ovsdb_type type
Definition: ovsdb-idl-provider.h:43
static void ovsrec_sflow_parse_polling(struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
Definition: vswitch-idl.c:20717
bool mutable
Definition: ovsdb-idl-provider.h:44
Definition: ovsdb-types.h:29
static void ovsrec_sflow_parse_agent(struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
Definition: vswitch-idl.c:20670
#define ovsrec_sflow_col_sampling
Definition: vswitch-idl.h:1867
static void ovsrec_sflow_unparse_agent(struct ovsdb_idl_row *row OVS_UNUSED)
Definition: vswitch-idl.c:20773
#define ovsrec_sflow_col_external_ids
Definition: vswitch-idl.h:1870
#define ovsrec_sflow_col_polling
Definition: vswitch-idl.h:1869
#define ovsrec_sflow_col_header
Definition: vswitch-idl.h:1868
static void ovsrec_sflow_parse_targets(struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
Definition: vswitch-idl.c:20755
static void ovsrec_sflow_parse_external_ids(struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
Definition: vswitch-idl.c:20683
static void ovsrec_sflow_unparse_sampling(struct ovsdb_idl_row *row_)
Definition: vswitch-idl.c:20806
void ovsrec_sflow_delete ( const struct ovsrec_sflow row)
20871 {
20873 }
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:1831
void ovsdb_idl_txn_delete(const struct ovsdb_idl_row *row_)
Definition: ovsdb-idl.c:2208
const struct ovsrec_sflow* ovsrec_sflow_first ( const struct ovsdb_idl idl)
20853 {
20855 }
struct ovsdb_idl_table_class ovsrec_table_classes[OVSREC_N_TABLES]
Definition: vswitch-idl.c:21482
static struct ovsrec_sflow * ovsrec_sflow_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:112
Definition: vswitch-idl.h:1929
const struct ovsdb_idl_row * ovsdb_idl_first_row(const struct ovsdb_idl *idl, const struct ovsdb_idl_table_class *table_class)
Definition: ovsdb-idl.c:1290
const struct ovsdb_datum* ovsrec_sflow_get_agent ( const struct ovsrec_sflow row,
enum ovsdb_atomic_type key_type  OVS_UNUSED 
)
21102 {
21103  ovs_assert(key_type == OVSDB_TYPE_STRING);
21105 }
#define ovs_assert(CONDITION)
Definition: util.h:73
#define ovsrec_sflow_col_agent
Definition: vswitch-idl.h:1866
Definition: ovsdb-types.h:33
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:1831
const struct ovsdb_datum * ovsdb_idl_read(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column)
Definition: ovsdb-idl.c:1320
const struct ovsdb_datum* ovsrec_sflow_get_external_ids ( const struct ovsrec_sflow row,
enum ovsdb_atomic_type key_type  OVS_UNUSED,
enum ovsdb_atomic_type value_type  OVS_UNUSED 
)
21131 {
21132  ovs_assert(key_type == OVSDB_TYPE_STRING);
21133  ovs_assert(value_type == OVSDB_TYPE_STRING);
21135 }
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: ovsdb-types.h:33
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:1831
const struct ovsdb_datum * ovsdb_idl_read(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column)
Definition: ovsdb-idl.c:1320
#define ovsrec_sflow_col_external_ids
Definition: vswitch-idl.h:1870
const struct ovsrec_sflow* ovsrec_sflow_get_for_uuid ( const struct ovsdb_idl idl,
const struct uuid uuid 
)
20841 {
20843 }
const struct ovsdb_idl_row * ovsdb_idl_get_row_for_uuid(const struct ovsdb_idl *idl, const struct ovsdb_idl_table_class *tc, const struct uuid *uuid)
Definition: ovsdb-idl.c:1262
struct ovsdb_idl_table_class ovsrec_table_classes[OVSREC_N_TABLES]
Definition: vswitch-idl.c:21482
static struct ovsrec_sflow * ovsrec_sflow_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:112
Definition: vswitch-idl.h:1929
const struct ovsdb_datum* ovsrec_sflow_get_header ( const struct ovsrec_sflow row,
enum ovsdb_atomic_type key_type  OVS_UNUSED 
)
21159 {
21160  ovs_assert(key_type == OVSDB_TYPE_INTEGER);
21162 }
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: ovsdb-types.h:30
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:1831
const struct ovsdb_datum * ovsdb_idl_read(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column)
Definition: ovsdb-idl.c:1320
#define ovsrec_sflow_col_header
Definition: vswitch-idl.h:1868
const struct ovsdb_datum* ovsrec_sflow_get_polling ( const struct ovsrec_sflow row,
enum ovsdb_atomic_type key_type  OVS_UNUSED 
)
21186 {
21187  ovs_assert(key_type == OVSDB_TYPE_INTEGER);
21189 }
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: ovsdb-types.h:30
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:1831
const struct ovsdb_datum * ovsdb_idl_read(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column)
Definition: ovsdb-idl.c:1320
#define ovsrec_sflow_col_polling
Definition: vswitch-idl.h:1869
const struct ovsdb_datum* ovsrec_sflow_get_sampling ( const struct ovsrec_sflow row,
enum ovsdb_atomic_type key_type  OVS_UNUSED 
)
21213 {
21214  ovs_assert(key_type == OVSDB_TYPE_INTEGER);
21216 }
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: ovsdb-types.h:30
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:1831
const struct ovsdb_datum * ovsdb_idl_read(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column)
Definition: ovsdb-idl.c:1320
#define ovsrec_sflow_col_sampling
Definition: vswitch-idl.h:1867
const struct ovsdb_datum* ovsrec_sflow_get_targets ( const struct ovsrec_sflow row,
enum ovsdb_atomic_type key_type  OVS_UNUSED 
)
21240 {
21241  ovs_assert(key_type == OVSDB_TYPE_STRING);
21243 }
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: ovsdb-types.h:33
#define ovsrec_sflow_col_targets
Definition: vswitch-idl.h:1871
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:1831
const struct ovsdb_datum * ovsdb_idl_read(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column)
Definition: ovsdb-idl.c:1320
void ovsrec_sflow_init ( struct ovsrec_sflow row)
20832 {
20833  memset(row, 0, sizeof *row);
20834  smap_init(&row->external_ids);
20835 }
void smap_init(struct smap *smap)
Definition: smap.c:33
struct smap external_ids
Definition: vswitch-idl.h:1837
static void ovsrec_sflow_init__ ( struct ovsdb_idl_row row)
static
20825 {
20827 }
static struct ovsrec_sflow * ovsrec_sflow_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:112
void ovsrec_sflow_init(struct ovsrec_sflow *row)
Definition: vswitch-idl.c:20831
struct ovsrec_sflow* ovsrec_sflow_insert ( struct ovsdb_idl_txn txn)
20884 {
20886 }
struct ovsdb_idl_table_class ovsrec_table_classes[OVSREC_N_TABLES]
Definition: vswitch-idl.c:21482
static struct ovsrec_sflow * ovsrec_sflow_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:112
Definition: vswitch-idl.h:1929
const struct ovsdb_idl_row * ovsdb_idl_txn_insert(struct ovsdb_idl_txn *txn, const struct ovsdb_idl_table_class *class, const struct uuid *uuid)
Definition: ovsdb-idl.c:2247
const struct ovsrec_sflow* ovsrec_sflow_next ( const struct ovsrec_sflow row)
20861 {
20863 }
static struct ovsrec_sflow * ovsrec_sflow_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:112
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:1831
const struct ovsdb_idl_row * ovsdb_idl_next_row(const struct ovsdb_idl_row *row)
Definition: ovsdb-idl.c:1301
static void ovsrec_sflow_parse_agent ( struct ovsdb_idl_row row_,
const struct ovsdb_datum datum 
)
static
20671 {
20672  struct ovsrec_sflow *row = ovsrec_sflow_cast(row_);
20673 
20674  ovs_assert(inited);
20675  if (datum->n >= 1) {
20676  row->agent = datum->keys[0].string;
20677  } else {
20678  row->agent = NULL;
20679  }
20680 }
#define ovs_assert(CONDITION)
Definition: util.h:73
static struct ovsrec_sflow * ovsrec_sflow_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:112
char * string
Definition: ovsdb-data.h:33
char * agent
Definition: vswitch-idl.h:1834
union ovsdb_atom * keys
Definition: ovsdb-data.h:127
static bool inited
Definition: vswitch-idl.c:18
unsigned int n
Definition: ovsdb-data.h:126
Definition: vswitch-idl.h:1830
static void ovsrec_sflow_parse_external_ids ( struct ovsdb_idl_row row_,
const struct ovsdb_datum datum 
)
static
20684 {
20685  struct ovsrec_sflow *row = ovsrec_sflow_cast(row_);
20686  size_t i;
20687 
20688  ovs_assert(inited);
20689  smap_init(&row->external_ids);
20690  for (i = 0; i < datum->n; i++) {
20691  smap_add(&row->external_ids,
20692  datum->keys[i].string,
20693  datum->values[i].string);
20694  }
20695 }
#define ovs_assert(CONDITION)
Definition: util.h:73
static struct ovsrec_sflow * ovsrec_sflow_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:112
void smap_init(struct smap *smap)
Definition: smap.c:33
char * string
Definition: ovsdb-data.h:33
struct smap_node * smap_add(struct smap *smap, const char *key, const char *value)
Definition: smap.c:50
union ovsdb_atom * keys
Definition: ovsdb-data.h:127
union ovsdb_atom * values
Definition: ovsdb-data.h:128
static bool inited
Definition: vswitch-idl.c:18
unsigned int n
Definition: ovsdb-data.h:126
struct smap external_ids
Definition: vswitch-idl.h:1837
Definition: vswitch-idl.h:1830
static void ovsrec_sflow_parse_header ( struct ovsdb_idl_row row_,
const struct ovsdb_datum datum 
)
static
20699 {
20700  struct ovsrec_sflow *row = ovsrec_sflow_cast(row_);
20701  size_t n = MIN(1, datum->n);
20702  size_t i;
20703 
20704  ovs_assert(inited);
20705  row->header = NULL;
20706  row->n_header = 0;
20707  for (i = 0; i < n; i++) {
20708  if (!row->n_header) {
20709  row->header = xmalloc(n * sizeof *row->header);
20710  }
20711  row->header[row->n_header] = datum->keys[i].integer;
20712  row->n_header++;
20713  }
20714 }
int64_t integer
Definition: ovsdb-data.h:30
#define ovs_assert(CONDITION)
Definition: util.h:73
int64_t * header
Definition: vswitch-idl.h:1840
static struct ovsrec_sflow * ovsrec_sflow_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:112
size_t n_header
Definition: vswitch-idl.h:1841
union ovsdb_atom * keys
Definition: ovsdb-data.h:127
void * xmalloc(size_t size)
Definition: util.c:110
static bool inited
Definition: vswitch-idl.c:18
unsigned int n
Definition: ovsdb-data.h:126
#define MIN(_a, _b)
Definition: Util.h:68
Definition: vswitch-idl.h:1830
static void ovsrec_sflow_parse_polling ( struct ovsdb_idl_row row_,
const struct ovsdb_datum datum 
)
static
20718 {
20719  struct ovsrec_sflow *row = ovsrec_sflow_cast(row_);
20720  size_t n = MIN(1, datum->n);
20721  size_t i;
20722 
20723  ovs_assert(inited);
20724  row->polling = NULL;
20725  row->n_polling = 0;
20726  for (i = 0; i < n; i++) {
20727  if (!row->n_polling) {
20728  row->polling = xmalloc(n * sizeof *row->polling);
20729  }
20730  row->polling[row->n_polling] = datum->keys[i].integer;
20731  row->n_polling++;
20732  }
20733 }
int64_t integer
Definition: ovsdb-data.h:30
#define ovs_assert(CONDITION)
Definition: util.h:73
static struct ovsrec_sflow * ovsrec_sflow_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:112
size_t n_polling
Definition: vswitch-idl.h:1845
union ovsdb_atom * keys
Definition: ovsdb-data.h:127
void * xmalloc(size_t size)
Definition: util.c:110
static bool inited
Definition: vswitch-idl.c:18
int64_t * polling
Definition: vswitch-idl.h:1844
unsigned int n
Definition: ovsdb-data.h:126
#define MIN(_a, _b)
Definition: Util.h:68
Definition: vswitch-idl.h:1830
static void ovsrec_sflow_parse_sampling ( struct ovsdb_idl_row row_,
const struct ovsdb_datum datum 
)
static
20737 {
20738  struct ovsrec_sflow *row = ovsrec_sflow_cast(row_);
20739  size_t n = MIN(1, datum->n);
20740  size_t i;
20741 
20742  ovs_assert(inited);
20743  row->sampling = NULL;
20744  row->n_sampling = 0;
20745  for (i = 0; i < n; i++) {
20746  if (!row->n_sampling) {
20747  row->sampling = xmalloc(n * sizeof *row->sampling);
20748  }
20749  row->sampling[row->n_sampling] = datum->keys[i].integer;
20750  row->n_sampling++;
20751  }
20752 }
int64_t integer
Definition: ovsdb-data.h:30
#define ovs_assert(CONDITION)
Definition: util.h:73
static struct ovsrec_sflow * ovsrec_sflow_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:112
size_t n_sampling
Definition: vswitch-idl.h:1849
union ovsdb_atom * keys
Definition: ovsdb-data.h:127
void * xmalloc(size_t size)
Definition: util.c:110
int64_t * sampling
Definition: vswitch-idl.h:1848
static bool inited
Definition: vswitch-idl.c:18
unsigned int n
Definition: ovsdb-data.h:126
#define MIN(_a, _b)
Definition: Util.h:68
Definition: vswitch-idl.h:1830
static void ovsrec_sflow_parse_targets ( struct ovsdb_idl_row row_,
const struct ovsdb_datum datum 
)
static
20756 {
20757  struct ovsrec_sflow *row = ovsrec_sflow_cast(row_);
20758  size_t i;
20759 
20760  ovs_assert(inited);
20761  row->targets = NULL;
20762  row->n_targets = 0;
20763  for (i = 0; i < datum->n; i++) {
20764  if (!row->n_targets) {
20765  row->targets = xmalloc(datum->n * sizeof *row->targets);
20766  }
20767  row->targets[row->n_targets] = datum->keys[i].string;
20768  row->n_targets++;
20769  }
20770 }
#define ovs_assert(CONDITION)
Definition: util.h:73
static struct ovsrec_sflow * ovsrec_sflow_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:112
char * string
Definition: ovsdb-data.h:33
union ovsdb_atom * keys
Definition: ovsdb-data.h:127
void * xmalloc(size_t size)
Definition: util.c:110
static bool inited
Definition: vswitch-idl.c:18
unsigned int n
Definition: ovsdb-data.h:126
char ** targets
Definition: vswitch-idl.h:1852
Definition: vswitch-idl.h:1830
size_t n_targets
Definition: vswitch-idl.h:1853
void ovsrec_sflow_set_agent ( const struct ovsrec_sflow row,
const char *  agent 
)
21254 {
21255  struct ovsdb_datum datum;
21256  union ovsdb_atom key;
21257 
21258  ovs_assert(inited);
21259  if (agent) {
21260  datum.n = 1;
21261  datum.keys = &key;
21262  key.string = CONST_CAST(char *, agent);
21263  } else {
21264  datum.n = 0;
21265  datum.keys = NULL;
21266  }
21267  datum.values = NULL;
21269 }
Definition: ovsdb-data.h:125
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: ovsdb-data.h:29
Definition: vswitch-idl.h:1857
struct ovsdb_idl_column ovsrec_sflow_columns[OVSREC_SFLOW_N_COLUMNS]
Definition: vswitch-idl.c:21404
static bool inited
Definition: vswitch-idl.c:18
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:1831
#define CONST_CAST(TYPE, POINTER)
Definition: util.h:88
static struct aes128 key
Definition: uuid.c:34
void ovsdb_idl_txn_write_clone(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column, const struct ovsdb_datum *datum)
Definition: ovsdb-idl.c:2131
void ovsrec_sflow_set_external_ids ( const struct ovsrec_sflow row,
const struct smap external_ids 
)
21277 {
21278  struct ovsdb_datum datum;
21279 
21280  ovs_assert(inited);
21281  if (external_ids) {
21282  struct smap_node *node;
21283  size_t i;
21284 
21285  datum.n = smap_count(external_ids);
21286  datum.keys = xmalloc(datum.n * sizeof *datum.keys);
21287  datum.values = xmalloc(datum.n * sizeof *datum.values);
21288 
21289  i = 0;
21290  SMAP_FOR_EACH (node, external_ids) {
21291  datum.keys[i].string = xstrdup(node->key);
21292  datum.values[i].string = xstrdup(node->value);
21293  i++;
21294  }
21296  } else {
21297  ovsdb_datum_init_empty(&datum);
21298  }
21301  &datum);
21302 }
char * value
Definition: smap.h:31
Definition: ovsdb-data.h:125
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: ovsdb-types.h:33
size_t ovsdb_datum_sort_unique(struct ovsdb_datum *datum, enum ovsdb_atomic_type key_type, enum ovsdb_atomic_type value_type)
Definition: ovsdb-data.c:1089
#define SMAP_FOR_EACH(SMAP_NODE, SMAP)
Definition: smap.h:36
void * xmalloc(size_t size)
Definition: util.c:110
struct ovsdb_idl_column ovsrec_sflow_columns[OVSREC_SFLOW_N_COLUMNS]
Definition: vswitch-idl.c:21404
char * xstrdup(const char *s)
Definition: util.c:149
static bool inited
Definition: vswitch-idl.c:18
struct hmap_node node
Definition: smap.h:29
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:1831
Definition: smap.h:28
size_t smap_count(const struct smap *smap)
Definition: smap.c:238
Definition: vswitch-idl.h:1858
void ovsdb_datum_init_empty(struct ovsdb_datum *datum)
Definition: ovsdb-data.c:835
void ovsdb_idl_txn_write(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column, struct ovsdb_datum *datum)
Definition: ovsdb-idl.c:2123
char * key
Definition: smap.h:30
void ovsrec_sflow_set_header ( const struct ovsrec_sflow row,
const int64_t header,
size_t  n_header 
)
21314 {
21315  struct ovsdb_datum datum;
21316  union ovsdb_atom key;
21317 
21318  ovs_assert(inited);
21319  if (n_header) {
21320  datum.n = 1;
21321  datum.keys = &key;
21322  key.integer = *header;
21323  } else {
21324  datum.n = 0;
21325  datum.keys = NULL;
21326  }
21327  datum.values = NULL;
21329 }
Definition: ovsdb-data.h:125
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: ovsdb-data.h:29
struct ovsdb_idl_column ovsrec_sflow_columns[OVSREC_SFLOW_N_COLUMNS]
Definition: vswitch-idl.c:21404
Definition: vswitch-idl.h:1859
static bool inited
Definition: vswitch-idl.c:18
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:1831
static struct aes128 key
Definition: uuid.c:34
void ovsdb_idl_txn_write_clone(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column, const struct ovsdb_datum *datum)
Definition: ovsdb-idl.c:2131
void ovsrec_sflow_set_polling ( const struct ovsrec_sflow row,
const int64_t polling,
size_t  n_polling 
)
21340 {
21341  struct ovsdb_datum datum;
21342  union ovsdb_atom key;
21343 
21344  ovs_assert(inited);
21345  if (n_polling) {
21346  datum.n = 1;
21347  datum.keys = &key;
21348  key.integer = *polling;
21349  } else {
21350  datum.n = 0;
21351  datum.keys = NULL;
21352  }
21353  datum.values = NULL;
21355 }
Definition: ovsdb-data.h:125
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: ovsdb-data.h:29
struct ovsdb_idl_column ovsrec_sflow_columns[OVSREC_SFLOW_N_COLUMNS]
Definition: vswitch-idl.c:21404
static bool inited
Definition: vswitch-idl.c:18
Definition: vswitch-idl.h:1860
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:1831
static struct aes128 key
Definition: uuid.c:34
void ovsdb_idl_txn_write_clone(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column, const struct ovsdb_datum *datum)
Definition: ovsdb-idl.c:2131
void ovsrec_sflow_set_sampling ( const struct ovsrec_sflow row,
const int64_t sampling,
size_t  n_sampling 
)
21366 {
21367  struct ovsdb_datum datum;
21368  union ovsdb_atom key;
21369 
21370  ovs_assert(inited);
21371  if (n_sampling) {
21372  datum.n = 1;
21373  datum.keys = &key;
21374  key.integer = *sampling;
21375  } else {
21376  datum.n = 0;
21377  datum.keys = NULL;
21378  }
21379  datum.values = NULL;
21381 }
Definition: ovsdb-data.h:125
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: ovsdb-data.h:29
struct ovsdb_idl_column ovsrec_sflow_columns[OVSREC_SFLOW_N_COLUMNS]
Definition: vswitch-idl.c:21404
static bool inited
Definition: vswitch-idl.c:18
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:1831
Definition: vswitch-idl.h:1861
static struct aes128 key
Definition: uuid.c:34
void ovsdb_idl_txn_write_clone(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column, const struct ovsdb_datum *datum)
Definition: ovsdb-idl.c:2131
void ovsrec_sflow_set_targets ( const struct ovsrec_sflow row,
const char **  targets,
size_t  n_targets 
)
21389 {
21390  struct ovsdb_datum datum;
21391  size_t i;
21392 
21393  ovs_assert(inited);
21394  datum.n = n_targets;
21395  datum.keys = n_targets ? xmalloc(n_targets * sizeof *datum.keys) : NULL;
21396  datum.values = NULL;
21397  for (i = 0; i < n_targets; i++) {
21398  datum.keys[i].string = xstrdup(targets[i]);
21399  }
21402 }
Definition: ovsdb-data.h:125
Definition: vswitch-idl.h:1862
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: ovsdb-types.h:33
size_t ovsdb_datum_sort_unique(struct ovsdb_datum *datum, enum ovsdb_atomic_type key_type, enum ovsdb_atomic_type value_type)
Definition: ovsdb-data.c:1089
void * xmalloc(size_t size)
Definition: util.c:110
struct ovsdb_idl_column ovsrec_sflow_columns[OVSREC_SFLOW_N_COLUMNS]
Definition: vswitch-idl.c:21404
char * xstrdup(const char *s)
Definition: util.c:149
static bool inited
Definition: vswitch-idl.c:18
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:1831
Definition: ovsdb-types.h:29
void ovsdb_idl_txn_write(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column, struct ovsdb_datum *datum)
Definition: ovsdb-idl.c:2123
static void ovsrec_sflow_unparse_agent ( struct ovsdb_idl_row *row  OVS_UNUSED)
static
20774 {
20775  /* Nothing to do. */
20776 }
static void ovsrec_sflow_unparse_external_ids ( struct ovsdb_idl_row row_)
static
20780 {
20781  struct ovsrec_sflow *row = ovsrec_sflow_cast(row_);
20782 
20783  ovs_assert(inited);
20784  smap_destroy(&row->external_ids);
20785 }
#define ovs_assert(CONDITION)
Definition: util.h:73
static struct ovsrec_sflow * ovsrec_sflow_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:112
static bool inited
Definition: vswitch-idl.c:18
void smap_destroy(struct smap *smap)
Definition: smap.c:39
struct smap external_ids
Definition: vswitch-idl.h:1837
Definition: vswitch-idl.h:1830
static void ovsrec_sflow_unparse_header ( struct ovsdb_idl_row row_)
static
20789 {
20790  struct ovsrec_sflow *row = ovsrec_sflow_cast(row_);
20791 
20792  ovs_assert(inited);
20793  free(row->header);
20794 }
#define ovs_assert(CONDITION)
Definition: util.h:73
int64_t * header
Definition: vswitch-idl.h:1840
static struct ovsrec_sflow * ovsrec_sflow_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:112
static bool inited
Definition: vswitch-idl.c:18
Definition: vswitch-idl.h:1830
static void ovsrec_sflow_unparse_polling ( struct ovsdb_idl_row row_)
static
20798 {
20799  struct ovsrec_sflow *row = ovsrec_sflow_cast(row_);
20800 
20801  ovs_assert(inited);
20802  free(row->polling);
20803 }
#define ovs_assert(CONDITION)
Definition: util.h:73
static struct ovsrec_sflow * ovsrec_sflow_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:112
static bool inited
Definition: vswitch-idl.c:18
int64_t * polling
Definition: vswitch-idl.h:1844
Definition: vswitch-idl.h:1830
static void ovsrec_sflow_unparse_sampling ( struct ovsdb_idl_row row_)
static
20807 {
20808  struct ovsrec_sflow *row = ovsrec_sflow_cast(row_);
20809 
20810  ovs_assert(inited);
20811  free(row->sampling);
20812 }
#define ovs_assert(CONDITION)
Definition: util.h:73
static struct ovsrec_sflow * ovsrec_sflow_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:112
int64_t * sampling
Definition: vswitch-idl.h:1848
static bool inited
Definition: vswitch-idl.c:18
Definition: vswitch-idl.h:1830
static void ovsrec_sflow_unparse_targets ( struct ovsdb_idl_row row_)
static
20816 {
20817  struct ovsrec_sflow *row = ovsrec_sflow_cast(row_);
20818 
20819  ovs_assert(inited);
20820  free(row->targets);
20821 }
#define ovs_assert(CONDITION)
Definition: util.h:73
static struct ovsrec_sflow * ovsrec_sflow_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:112
static bool inited
Definition: vswitch-idl.c:18
char ** targets
Definition: vswitch-idl.h:1852
Definition: vswitch-idl.h:1830
void ovsrec_sflow_verify_agent ( const struct ovsrec_sflow row)
20915 {
20916  ovs_assert(inited);
20918 }
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: vswitch-idl.h:1857
struct ovsdb_idl_column ovsrec_sflow_columns[OVSREC_SFLOW_N_COLUMNS]
Definition: vswitch-idl.c:21404
static bool inited
Definition: vswitch-idl.c:18
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:1831
void ovsdb_idl_txn_verify(const struct ovsdb_idl_row *, const struct ovsdb_idl_column *)
Definition: ovsdb-idl.c:2168
void ovsrec_sflow_verify_external_ids ( const struct ovsrec_sflow row)
20947 {
20948  ovs_assert(inited);
20950 }
#define ovs_assert(CONDITION)
Definition: util.h:73
struct ovsdb_idl_column ovsrec_sflow_columns[OVSREC_SFLOW_N_COLUMNS]
Definition: vswitch-idl.c:21404
static bool inited
Definition: vswitch-idl.c:18
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:1831
Definition: vswitch-idl.h:1858
void ovsdb_idl_txn_verify(const struct ovsdb_idl_row *, const struct ovsdb_idl_column *)
Definition: ovsdb-idl.c:2168
void ovsrec_sflow_verify_header ( const struct ovsrec_sflow row)
20979 {
20980  ovs_assert(inited);
20982 }
#define ovs_assert(CONDITION)
Definition: util.h:73
struct ovsdb_idl_column ovsrec_sflow_columns[OVSREC_SFLOW_N_COLUMNS]
Definition: vswitch-idl.c:21404
Definition: vswitch-idl.h:1859
static bool inited
Definition: vswitch-idl.c:18
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:1831
void ovsdb_idl_txn_verify(const struct ovsdb_idl_row *, const struct ovsdb_idl_column *)
Definition: ovsdb-idl.c:2168
void ovsrec_sflow_verify_polling ( const struct ovsrec_sflow row)
21011 {
21012  ovs_assert(inited);
21014 }
#define ovs_assert(CONDITION)
Definition: util.h:73
struct ovsdb_idl_column ovsrec_sflow_columns[OVSREC_SFLOW_N_COLUMNS]
Definition: vswitch-idl.c:21404
static bool inited
Definition: vswitch-idl.c:18
Definition: vswitch-idl.h:1860
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:1831
void ovsdb_idl_txn_verify(const struct ovsdb_idl_row *, const struct ovsdb_idl_column *)
Definition: ovsdb-idl.c:2168
void ovsrec_sflow_verify_sampling ( const struct ovsrec_sflow row)
21043 {
21044  ovs_assert(inited);
21046 }
#define ovs_assert(CONDITION)
Definition: util.h:73
struct ovsdb_idl_column ovsrec_sflow_columns[OVSREC_SFLOW_N_COLUMNS]
Definition: vswitch-idl.c:21404
static bool inited
Definition: vswitch-idl.c:18
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:1831
Definition: vswitch-idl.h:1861
void ovsdb_idl_txn_verify(const struct ovsdb_idl_row *, const struct ovsdb_idl_column *)
Definition: ovsdb-idl.c:2168
void ovsrec_sflow_verify_targets ( const struct ovsrec_sflow row)
21075 {
21076  ovs_assert(inited);
21078 }
Definition: vswitch-idl.h:1862
#define ovs_assert(CONDITION)
Definition: util.h:73
struct ovsdb_idl_column ovsrec_sflow_columns[OVSREC_SFLOW_N_COLUMNS]
Definition: vswitch-idl.c:21404
static bool inited
Definition: vswitch-idl.c:18
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:1831
void ovsdb_idl_txn_verify(const struct ovsdb_idl_row *, const struct ovsdb_idl_column *)
Definition: ovsdb-idl.c:2168
static struct ovsrec_ssl* ovsrec_ssl_cast ( const struct ovsdb_idl_row row)
static
107 {
108  return row ? CONTAINER_OF(row, struct ovsrec_ssl, header_) : NULL;
109 }
#define CONTAINER_OF(POINTER, STRUCT, MEMBER)
Definition: util.h:207
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:1831
Definition: vswitch-idl.h:1758
static void ovsrec_ssl_columns_init ( void  )
static
20603 {
20604  struct ovsdb_idl_column *c;
20605 
20606  /* Initialize ovsrec_ssl_col_bootstrap_ca_cert. */
20608  c->name = "bootstrap_ca_cert";
20611  c->type.n_min = 1;
20612  c->type.n_max = 1;
20613  c->mutable = true;
20616 
20617  /* Initialize ovsrec_ssl_col_ca_cert. */
20619  c->name = "ca_cert";
20621  c->type.key.u.string.minLen = 0;
20623  c->type.n_min = 1;
20624  c->type.n_max = 1;
20625  c->mutable = true;
20628 
20629  /* Initialize ovsrec_ssl_col_certificate. */
20631  c->name = "certificate";
20633  c->type.key.u.string.minLen = 0;
20635  c->type.n_min = 1;
20636  c->type.n_max = 1;
20637  c->mutable = true;
20640 
20641  /* Initialize ovsrec_ssl_col_external_ids. */
20643  c->name = "external_ids";
20645  c->type.key.u.string.minLen = 0;
20647  c->type.value.u.string.minLen = 0;
20648  c->type.n_min = 0;
20649  c->type.n_max = UINT_MAX;
20650  c->mutable = true;
20653 
20654  /* Initialize ovsrec_ssl_col_private_key. */
20656  c->name = "private_key";
20658  c->type.key.u.string.minLen = 0;
20660  c->type.n_min = 1;
20661  c->type.n_max = 1;
20662  c->mutable = true;
20665 }
void(* unparse)(struct ovsdb_idl_row *)
Definition: ovsdb-idl-provider.h:46
Definition: ovsdb-idl-provider.h:41
struct ovsdb_base_type::@145::ovsdb_string_constraints string
static void ovsrec_ssl_parse_private_key(struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
Definition: vswitch-idl.c:20085
static void ovsrec_ssl_unparse_ca_cert(struct ovsdb_idl_row *row OVS_UNUSED)
Definition: vswitch-idl.c:20104
void ovsdb_base_type_init(struct ovsdb_base_type *base, enum ovsdb_atomic_type type)
Definition: ovsdb-types.c:117
union ovsdb_base_type::@145 u
static void ovsrec_ssl_unparse_external_ids(struct ovsdb_idl_row *row_)
Definition: vswitch-idl.c:20116
unsigned int n_min
Definition: ovsdb-types.h:136
static void ovsrec_ssl_parse_ca_cert(struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
Definition: vswitch-idl.c:20044
struct ovsdb_base_type key
Definition: ovsdb-types.h:134
void(* parse)(struct ovsdb_idl_row *, const struct ovsdb_datum *)
Definition: ovsdb-idl-provider.h:45
unsigned int n_max
Definition: ovsdb-types.h:137
static void ovsrec_ssl_unparse_certificate(struct ovsdb_idl_row *row OVS_UNUSED)
Definition: vswitch-idl.c:20110
Definition: ovsdb-types.h:33
struct ovsdb_base_type value
Definition: ovsdb-types.h:135
char * name
Definition: ovsdb-idl-provider.h:42
#define ovsrec_ssl_col_private_key
Definition: vswitch-idl.h:1787
#define ovsrec_ssl_col_certificate
Definition: vswitch-idl.h:1790
struct ovsdb_type type
Definition: ovsdb-idl-provider.h:43
#define ovsrec_ssl_col_bootstrap_ca_cert
Definition: vswitch-idl.h:1788
bool mutable
Definition: ovsdb-idl-provider.h:44
static void ovsrec_ssl_unparse_private_key(struct ovsdb_idl_row *row OVS_UNUSED)
Definition: vswitch-idl.c:20125
#define ovsrec_ssl_col_external_ids
Definition: vswitch-idl.h:1789
Definition: ovsdb-types.h:29
static void ovsrec_ssl_parse_certificate(struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
Definition: vswitch-idl.c:20057
static void ovsrec_ssl_parse_external_ids(struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
Definition: vswitch-idl.c:20070
static void ovsrec_ssl_unparse_bootstrap_ca_cert(struct ovsdb_idl_row *row OVS_UNUSED)
Definition: vswitch-idl.c:20098
Definition: ovsdb-types.h:32
static void ovsrec_ssl_parse_bootstrap_ca_cert(struct ovsdb_idl_row *row_, const struct ovsdb_datum *datum)
Definition: vswitch-idl.c:20031
#define ovsrec_ssl_col_ca_cert
Definition: vswitch-idl.h:1786
void ovsrec_ssl_delete ( const struct ovsrec_ssl row)
20178 {
20180 }
void ovsdb_idl_txn_delete(const struct ovsdb_idl_row *row_)
Definition: ovsdb-idl.c:2208
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:1759
const struct ovsrec_ssl* ovsrec_ssl_first ( const struct ovsdb_idl idl)
20160 {
20162 }
struct ovsdb_idl_table_class ovsrec_table_classes[OVSREC_N_TABLES]
Definition: vswitch-idl.c:21482
Definition: vswitch-idl.h:1928
static struct ovsrec_ssl * ovsrec_ssl_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:106
const struct ovsdb_idl_row * ovsdb_idl_first_row(const struct ovsdb_idl *idl, const struct ovsdb_idl_table_class *table_class)
Definition: ovsdb-idl.c:1290
const struct ovsdb_datum* ovsrec_ssl_get_bootstrap_ca_cert ( const struct ovsrec_ssl row,
enum ovsdb_atomic_type key_type  OVS_UNUSED 
)
20377 {
20378  ovs_assert(key_type == OVSDB_TYPE_BOOLEAN);
20380 }
#define ovs_assert(CONDITION)
Definition: util.h:73
#define ovsrec_ssl_col_bootstrap_ca_cert
Definition: vswitch-idl.h:1788
const struct ovsdb_datum * ovsdb_idl_read(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column)
Definition: ovsdb-idl.c:1320
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:1759
Definition: ovsdb-types.h:32
const struct ovsdb_datum* ovsrec_ssl_get_ca_cert ( const struct ovsrec_ssl row,
enum ovsdb_atomic_type key_type  OVS_UNUSED 
)
20404 {
20405  ovs_assert(key_type == OVSDB_TYPE_STRING);
20407 }
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: ovsdb-types.h:33
const struct ovsdb_datum * ovsdb_idl_read(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column)
Definition: ovsdb-idl.c:1320
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:1759
#define ovsrec_ssl_col_ca_cert
Definition: vswitch-idl.h:1786
const struct ovsdb_datum* ovsrec_ssl_get_certificate ( const struct ovsrec_ssl row,
enum ovsdb_atomic_type key_type  OVS_UNUSED 
)
20431 {
20432  ovs_assert(key_type == OVSDB_TYPE_STRING);
20434 }
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: ovsdb-types.h:33
#define ovsrec_ssl_col_certificate
Definition: vswitch-idl.h:1790
const struct ovsdb_datum * ovsdb_idl_read(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column)
Definition: ovsdb-idl.c:1320
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:1759
const struct ovsdb_datum* ovsrec_ssl_get_external_ids ( const struct ovsrec_ssl row,
enum ovsdb_atomic_type key_type  OVS_UNUSED,
enum ovsdb_atomic_type value_type  OVS_UNUSED 
)
20460 {
20461  ovs_assert(key_type == OVSDB_TYPE_STRING);
20462  ovs_assert(value_type == OVSDB_TYPE_STRING);
20464 }
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: ovsdb-types.h:33
#define ovsrec_ssl_col_external_ids
Definition: vswitch-idl.h:1789
const struct ovsdb_datum * ovsdb_idl_read(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column)
Definition: ovsdb-idl.c:1320
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:1759
const struct ovsrec_ssl* ovsrec_ssl_get_for_uuid ( const struct ovsdb_idl idl,
const struct uuid uuid 
)
20148 {
20150 }
const struct ovsdb_idl_row * ovsdb_idl_get_row_for_uuid(const struct ovsdb_idl *idl, const struct ovsdb_idl_table_class *tc, const struct uuid *uuid)
Definition: ovsdb-idl.c:1262
struct ovsdb_idl_table_class ovsrec_table_classes[OVSREC_N_TABLES]
Definition: vswitch-idl.c:21482
Definition: vswitch-idl.h:1928
static struct ovsrec_ssl * ovsrec_ssl_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:106
const struct ovsdb_datum* ovsrec_ssl_get_private_key ( const struct ovsrec_ssl row,
enum ovsdb_atomic_type key_type  OVS_UNUSED 
)
20488 {
20489  ovs_assert(key_type == OVSDB_TYPE_STRING);
20491 }
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: ovsdb-types.h:33
#define ovsrec_ssl_col_private_key
Definition: vswitch-idl.h:1787
const struct ovsdb_datum * ovsdb_idl_read(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column)
Definition: ovsdb-idl.c:1320
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:1759
void ovsrec_ssl_init ( struct ovsrec_ssl row)
20139 {
20140  memset(row, 0, sizeof *row);
20141  smap_init(&row->external_ids);
20142 }
void smap_init(struct smap *smap)
Definition: smap.c:33
struct smap external_ids
Definition: vswitch-idl.h:1771
static void ovsrec_ssl_init__ ( struct ovsdb_idl_row row)
static
20132 {
20134 }
static struct ovsrec_ssl * ovsrec_ssl_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:106
void ovsrec_ssl_init(struct ovsrec_ssl *row)
Definition: vswitch-idl.c:20138
struct ovsrec_ssl* ovsrec_ssl_insert ( struct ovsdb_idl_txn txn)
20191 {
20193 }
struct ovsdb_idl_table_class ovsrec_table_classes[OVSREC_N_TABLES]
Definition: vswitch-idl.c:21482
Definition: vswitch-idl.h:1928
static struct ovsrec_ssl * ovsrec_ssl_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:106
const struct ovsdb_idl_row * ovsdb_idl_txn_insert(struct ovsdb_idl_txn *txn, const struct ovsdb_idl_table_class *class, const struct uuid *uuid)
Definition: ovsdb-idl.c:2247
const struct ovsrec_ssl* ovsrec_ssl_next ( const struct ovsrec_ssl row)
20168 {
20170 }
static struct ovsrec_ssl * ovsrec_ssl_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:106
const struct ovsdb_idl_row * ovsdb_idl_next_row(const struct ovsdb_idl_row *row)
Definition: ovsdb-idl.c:1301
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:1759
static void ovsrec_ssl_parse_bootstrap_ca_cert ( struct ovsdb_idl_row row_,
const struct ovsdb_datum datum 
)
static
20032 {
20033  struct ovsrec_ssl *row = ovsrec_ssl_cast(row_);
20034 
20035  ovs_assert(inited);
20036  if (datum->n >= 1) {
20037  row->bootstrap_ca_cert = datum->keys[0].boolean;
20038  } else {
20039  row->bootstrap_ca_cert = false;
20040  }
20041 }
#define ovs_assert(CONDITION)
Definition: util.h:73
static struct ovsrec_ssl * ovsrec_ssl_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:106
union ovsdb_atom * keys
Definition: ovsdb-data.h:127
bool boolean
Definition: ovsdb-data.h:32
static bool inited
Definition: vswitch-idl.c:18
unsigned int n
Definition: ovsdb-data.h:126
Definition: vswitch-idl.h:1758
bool bootstrap_ca_cert
Definition: vswitch-idl.h:1762
static void ovsrec_ssl_parse_ca_cert ( struct ovsdb_idl_row row_,
const struct ovsdb_datum datum 
)
static
20045 {
20046  struct ovsrec_ssl *row = ovsrec_ssl_cast(row_);
20047 
20048  ovs_assert(inited);
20049  if (datum->n >= 1) {
20050  row->ca_cert = datum->keys[0].string;
20051  } else {
20052  row->ca_cert = "";
20053  }
20054 }
#define ovs_assert(CONDITION)
Definition: util.h:73
char * string
Definition: ovsdb-data.h:33
char * ca_cert
Definition: vswitch-idl.h:1765
static struct ovsrec_ssl * ovsrec_ssl_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:106
union ovsdb_atom * keys
Definition: ovsdb-data.h:127
static bool inited
Definition: vswitch-idl.c:18
unsigned int n
Definition: ovsdb-data.h:126
Definition: vswitch-idl.h:1758
static void ovsrec_ssl_parse_certificate ( struct ovsdb_idl_row row_,
const struct ovsdb_datum datum 
)
static
20058 {
20059  struct ovsrec_ssl *row = ovsrec_ssl_cast(row_);
20060 
20061  ovs_assert(inited);
20062  if (datum->n >= 1) {
20063  row->certificate = datum->keys[0].string;
20064  } else {
20065  row->certificate = "";
20066  }
20067 }
#define ovs_assert(CONDITION)
Definition: util.h:73
char * string
Definition: ovsdb-data.h:33
char * certificate
Definition: vswitch-idl.h:1768
static struct ovsrec_ssl * ovsrec_ssl_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:106
union ovsdb_atom * keys
Definition: ovsdb-data.h:127
static bool inited
Definition: vswitch-idl.c:18
unsigned int n
Definition: ovsdb-data.h:126
Definition: vswitch-idl.h:1758
static void ovsrec_ssl_parse_external_ids ( struct ovsdb_idl_row row_,
const struct ovsdb_datum datum 
)
static
20071 {
20072  struct ovsrec_ssl *row = ovsrec_ssl_cast(row_);
20073  size_t i;
20074 
20075  ovs_assert(inited);
20076  smap_init(&row->external_ids);
20077  for (i = 0; i < datum->n; i++) {
20078  smap_add(&row->external_ids,
20079  datum->keys[i].string,
20080  datum->values[i].string);
20081  }
20082 }
#define ovs_assert(CONDITION)
Definition: util.h:73
void smap_init(struct smap *smap)
Definition: smap.c:33
char * string
Definition: ovsdb-data.h:33
struct smap_node * smap_add(struct smap *smap, const char *key, const char *value)
Definition: smap.c:50
static struct ovsrec_ssl * ovsrec_ssl_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:106
union ovsdb_atom * keys
Definition: ovsdb-data.h:127
union ovsdb_atom * values
Definition: ovsdb-data.h:128
static bool inited
Definition: vswitch-idl.c:18
struct smap external_ids
Definition: vswitch-idl.h:1771
unsigned int n
Definition: ovsdb-data.h:126
Definition: vswitch-idl.h:1758
static void ovsrec_ssl_parse_private_key ( struct ovsdb_idl_row row_,
const struct ovsdb_datum datum 
)
static
20086 {
20087  struct ovsrec_ssl *row = ovsrec_ssl_cast(row_);
20088 
20089  ovs_assert(inited);
20090  if (datum->n >= 1) {
20091  row->private_key = datum->keys[0].string;
20092  } else {
20093  row->private_key = "";
20094  }
20095 }
#define ovs_assert(CONDITION)
Definition: util.h:73
char * string
Definition: ovsdb-data.h:33
static struct ovsrec_ssl * ovsrec_ssl_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:106
union ovsdb_atom * keys
Definition: ovsdb-data.h:127
static bool inited
Definition: vswitch-idl.c:18
unsigned int n
Definition: ovsdb-data.h:126
Definition: vswitch-idl.h:1758
char * private_key
Definition: vswitch-idl.h:1774
void ovsrec_ssl_set_bootstrap_ca_cert ( const struct ovsrec_ssl row,
bool  bootstrap_ca_cert 
)
20499 {
20500  struct ovsdb_datum datum;
20501  union ovsdb_atom key;
20502 
20503  ovs_assert(inited);
20504  datum.n = 1;
20505  datum.keys = &key;
20506  key.boolean = bootstrap_ca_cert;
20507  datum.values = NULL;
20509 }
Definition: ovsdb-data.h:125
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: ovsdb-data.h:29
Definition: vswitch-idl.h:1778
static bool inited
Definition: vswitch-idl.c:18
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:1759
static bool bootstrap_ca_cert
Definition: stream-ssl.c:176
static struct aes128 key
Definition: uuid.c:34
struct ovsdb_idl_column ovsrec_ssl_columns[OVSREC_SSL_N_COLUMNS]
Definition: vswitch-idl.c:20599
void ovsdb_idl_txn_write_clone(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column, const struct ovsdb_datum *datum)
Definition: ovsdb-idl.c:2131
void ovsrec_ssl_set_ca_cert ( const struct ovsrec_ssl row,
const char *  ca_cert 
)
20517 {
20518  struct ovsdb_datum datum;
20519  union ovsdb_atom key;
20520 
20521  ovs_assert(inited);
20522  datum.n = 1;
20523  datum.keys = &key;
20524  key.string = CONST_CAST(char *, ca_cert);
20525  datum.values = NULL;
20527 }
Definition: ovsdb-data.h:125
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: vswitch-idl.h:1779
Definition: ovsdb-data.h:29
static bool inited
Definition: vswitch-idl.c:18
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:1759
static struct ssl_config_file ca_cert
Definition: stream-ssl.c:164
#define CONST_CAST(TYPE, POINTER)
Definition: util.h:88
static struct aes128 key
Definition: uuid.c:34
struct ovsdb_idl_column ovsrec_ssl_columns[OVSREC_SSL_N_COLUMNS]
Definition: vswitch-idl.c:20599
void ovsdb_idl_txn_write_clone(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column, const struct ovsdb_datum *datum)
Definition: ovsdb-idl.c:2131
void ovsrec_ssl_set_certificate ( const struct ovsrec_ssl row,
const char *  certificate 
)
20535 {
20536  struct ovsdb_datum datum;
20537  union ovsdb_atom key;
20538 
20539  ovs_assert(inited);
20540  datum.n = 1;
20541  datum.keys = &key;
20542  key.string = CONST_CAST(char *, certificate);
20543  datum.values = NULL;
20545 }
Definition: ovsdb-data.h:125
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: vswitch-idl.h:1780
Definition: ovsdb-data.h:29
static bool inited
Definition: vswitch-idl.c:18
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:1759
#define CONST_CAST(TYPE, POINTER)
Definition: util.h:88
static struct aes128 key
Definition: uuid.c:34
struct ovsdb_idl_column ovsrec_ssl_columns[OVSREC_SSL_N_COLUMNS]
Definition: vswitch-idl.c:20599
static struct ssl_config_file certificate
Definition: stream-ssl.c:163
void ovsdb_idl_txn_write_clone(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column, const struct ovsdb_datum *datum)
Definition: ovsdb-idl.c:2131
void ovsrec_ssl_set_external_ids ( const struct ovsrec_ssl row,
const struct smap external_ids 
)
20553 {
20554  struct ovsdb_datum datum;
20555 
20556  ovs_assert(inited);
20557  if (external_ids) {
20558  struct smap_node *node;
20559  size_t i;
20560 
20561  datum.n = smap_count(external_ids);
20562  datum.keys = xmalloc(datum.n * sizeof *datum.keys);
20563  datum.values = xmalloc(datum.n * sizeof *datum.values);
20564 
20565  i = 0;
20566  SMAP_FOR_EACH (node, external_ids) {
20567  datum.keys[i].string = xstrdup(node->key);
20568  datum.values[i].string = xstrdup(node->value);
20569  i++;
20570  }
20572  } else {
20573  ovsdb_datum_init_empty(&datum);
20574  }
20577  &datum);
20578 }
char * value
Definition: smap.h:31
Definition: ovsdb-data.h:125
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: ovsdb-types.h:33
size_t ovsdb_datum_sort_unique(struct ovsdb_datum *datum, enum ovsdb_atomic_type key_type, enum ovsdb_atomic_type value_type)
Definition: ovsdb-data.c:1089
#define SMAP_FOR_EACH(SMAP_NODE, SMAP)
Definition: smap.h:36
void * xmalloc(size_t size)
Definition: util.c:110
Definition: vswitch-idl.h:1781
char * xstrdup(const char *s)
Definition: util.c:149
static bool inited
Definition: vswitch-idl.c:18
struct hmap_node node
Definition: smap.h:29
Definition: smap.h:28
size_t smap_count(const struct smap *smap)
Definition: smap.c:238
void ovsdb_datum_init_empty(struct ovsdb_datum *datum)
Definition: ovsdb-data.c:835
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:1759
void ovsdb_idl_txn_write(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column, struct ovsdb_datum *datum)
Definition: ovsdb-idl.c:2123
char * key
Definition: smap.h:30
struct ovsdb_idl_column ovsrec_ssl_columns[OVSREC_SSL_N_COLUMNS]
Definition: vswitch-idl.c:20599
void ovsrec_ssl_set_private_key ( const struct ovsrec_ssl row,
const char *  private_key 
)
20587 {
20588  struct ovsdb_datum datum;
20589  union ovsdb_atom key;
20590 
20591  ovs_assert(inited);
20592  datum.n = 1;
20593  datum.keys = &key;
20594  key.string = CONST_CAST(char *, private_key);
20595  datum.values = NULL;
20597 }
Definition: ovsdb-data.h:125
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: vswitch-idl.h:1782
static struct ssl_config_file private_key
Definition: stream-ssl.c:162
Definition: ovsdb-data.h:29
static bool inited
Definition: vswitch-idl.c:18
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:1759
#define CONST_CAST(TYPE, POINTER)
Definition: util.h:88
static struct aes128 key
Definition: uuid.c:34
struct ovsdb_idl_column ovsrec_ssl_columns[OVSREC_SSL_N_COLUMNS]
Definition: vswitch-idl.c:20599
void ovsdb_idl_txn_write_clone(const struct ovsdb_idl_row *row, const struct ovsdb_idl_column *column, const struct ovsdb_datum *datum)
Definition: ovsdb-idl.c:2131
static void ovsrec_ssl_unparse_bootstrap_ca_cert ( struct ovsdb_idl_row *row  OVS_UNUSED)
static
20099 {
20100  /* Nothing to do. */
20101 }
static void ovsrec_ssl_unparse_ca_cert ( struct ovsdb_idl_row *row  OVS_UNUSED)
static
20105 {
20106  /* Nothing to do. */
20107 }
static void ovsrec_ssl_unparse_certificate ( struct ovsdb_idl_row *row  OVS_UNUSED)
static
20111 {
20112  /* Nothing to do. */
20113 }
static void ovsrec_ssl_unparse_external_ids ( struct ovsdb_idl_row row_)
static
20117 {
20118  struct ovsrec_ssl *row = ovsrec_ssl_cast(row_);
20119 
20120  ovs_assert(inited);
20121  smap_destroy(&row->external_ids);
20122 }
#define ovs_assert(CONDITION)
Definition: util.h:73
static struct ovsrec_ssl * ovsrec_ssl_cast(const struct ovsdb_idl_row *row)
Definition: vswitch-idl.c:106
static bool inited
Definition: vswitch-idl.c:18
struct smap external_ids
Definition: vswitch-idl.h:1771
void smap_destroy(struct smap *smap)
Definition: smap.c:39
Definition: vswitch-idl.h:1758
static void ovsrec_ssl_unparse_private_key ( struct ovsdb_idl_row *row  OVS_UNUSED)
static
20126 {
20127  /* Nothing to do. */
20128 }
void ovsrec_ssl_verify_bootstrap_ca_cert ( const struct ovsrec_ssl row)
20222 {
20223  ovs_assert(inited);
20225 }
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: vswitch-idl.h:1778
static bool inited
Definition: vswitch-idl.c:18
void ovsdb_idl_txn_verify(const struct ovsdb_idl_row *, const struct ovsdb_idl_column *)
Definition: ovsdb-idl.c:2168
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:1759
struct ovsdb_idl_column ovsrec_ssl_columns[OVSREC_SSL_N_COLUMNS]
Definition: vswitch-idl.c:20599
void ovsrec_ssl_verify_ca_cert ( const struct ovsrec_ssl row)
20254 {
20255  ovs_assert(inited);
20257 }
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: vswitch-idl.h:1779
static bool inited
Definition: vswitch-idl.c:18
void ovsdb_idl_txn_verify(const struct ovsdb_idl_row *, const struct ovsdb_idl_column *)
Definition: ovsdb-idl.c:2168
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:1759
struct ovsdb_idl_column ovsrec_ssl_columns[OVSREC_SSL_N_COLUMNS]
Definition: vswitch-idl.c:20599
void ovsrec_ssl_verify_certificate ( const struct ovsrec_ssl row)
20286 {
20287  ovs_assert(inited);
20289 }
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: vswitch-idl.h:1780
static bool inited
Definition: vswitch-idl.c:18
void ovsdb_idl_txn_verify(const struct ovsdb_idl_row *, const struct ovsdb_idl_column *)
Definition: ovsdb-idl.c:2168
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:1759
struct ovsdb_idl_column ovsrec_ssl_columns[OVSREC_SSL_N_COLUMNS]
Definition: vswitch-idl.c:20599
void ovsrec_ssl_verify_external_ids ( const struct ovsrec_ssl row)
20318 {
20319  ovs_assert(inited);
20321 }
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: vswitch-idl.h:1781
static bool inited
Definition: vswitch-idl.c:18
void ovsdb_idl_txn_verify(const struct ovsdb_idl_row *, const struct ovsdb_idl_column *)
Definition: ovsdb-idl.c:2168
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:1759
struct ovsdb_idl_column ovsrec_ssl_columns[OVSREC_SSL_N_COLUMNS]
Definition: vswitch-idl.c:20599
void ovsrec_ssl_verify_private_key ( const struct ovsrec_ssl row)
20350 {
20351  ovs_assert(inited);
20353 }
#define ovs_assert(CONDITION)
Definition: util.h:73
Definition: vswitch-idl.h:1782
static bool inited
Definition: vswitch-idl.c:18
void ovsdb_idl_txn_verify(const struct ovsdb_idl_row *, const struct ovsdb_idl_column *)
Definition: ovsdb-idl.c:2168
struct ovsdb_idl_row header_
Definition: vswitch-idl.h:1759
struct ovsdb_idl_column ovsrec_ssl_columns[OVSREC_SSL_N_COLUMNS]
Definition: vswitch-idl.c:20599

Variable Documentation

bool inited
static
struct ovsdb_idl_column ovsrec_autoattach_columns[OVSREC_AUTOATTACH_N_COLUMNS]
struct ovsdb_idl_column ovsrec_bridge_columns[OVSREC_BRIDGE_N_COLUMNS]
struct ovsdb_idl_column ovsrec_controller_columns[OVSREC_CONTROLLER_N_COLUMNS]
struct ovsdb_idl_column ovsrec_flow_sample_collector_set_columns[OVSREC_FLOW_SAMPLE_COLLECTOR_SET_N_COLUMNS]
struct ovsdb_idl_column ovsrec_flow_table_columns[OVSREC_FLOW_TABLE_N_COLUMNS]
struct ovsdb_idl_class ovsrec_idl_class
Initial value:
= {
}
struct ovsdb_idl_table_class ovsrec_table_classes[OVSREC_N_TABLES]
Definition: vswitch-idl.c:21482
#define ARRAY_SIZE(_x)
Definition: Util.h:69
struct ovsdb_idl_column ovsrec_interface_columns[OVSREC_INTERFACE_N_COLUMNS]
struct ovsdb_idl_column ovsrec_ipfix_columns[OVSREC_IPFIX_N_COLUMNS]
struct ovsdb_idl_column ovsrec_manager_columns[OVSREC_MANAGER_N_COLUMNS]
struct ovsdb_idl_column ovsrec_mirror_columns[OVSREC_MIRROR_N_COLUMNS]
struct ovsdb_idl_column ovsrec_netflow_columns[OVSREC_NETFLOW_N_COLUMNS]
struct ovsdb_idl_column ovsrec_open_vswitch_columns[OVSREC_OPEN_VSWITCH_N_COLUMNS]
struct ovsdb_idl_column ovsrec_port_columns[OVSREC_PORT_N_COLUMNS]
struct ovsdb_idl_column ovsrec_qos_columns[OVSREC_QOS_N_COLUMNS]
struct ovsdb_idl_column ovsrec_queue_columns[OVSREC_QUEUE_N_COLUMNS]
struct ovsdb_idl_column ovsrec_sflow_columns[OVSREC_SFLOW_N_COLUMNS]
struct ovsdb_idl_column ovsrec_ssl_columns[OVSREC_SSL_N_COLUMNS]
struct ovsdb_idl_table_class ovsrec_table_classes[OVSREC_N_TABLES]